blob: f213458f25368e40f8caf1d4a071d977bda49aee [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2020 The Chromium Authors
James Cook3bd49ab2020-04-02 23:47:552// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "chrome/browser/supervised_user/supervised_user_test_util.h"
6
7#include "chrome/browser/profiles/profile.h"
James Cook3bd49ab2020-04-02 23:47:558#include "components/prefs/pref_service.h"
[email protected]f1a9899c2023-01-26 16:48:249#include "components/supervised_user/core/common/pref_names.h"
James Cook3bd49ab2020-04-02 23:47:5510
11namespace supervised_user_test_util {
12
13void AddCustodians(Profile* profile) {
Nohemi Fernandez1ee7df12021-12-06 10:34:0514 DCHECK(profile->IsChild());
James Cook3bd49ab2020-04-02 23:47:5515 PrefService* prefs = profile->GetPrefs();
16 prefs->SetString(prefs::kSupervisedUserCustodianEmail,
17 "[email protected]");
18 prefs->SetString(prefs::kSupervisedUserCustodianObfuscatedGaiaId,
19 "239029320");
20
21 prefs->SetString(prefs::kSupervisedUserSecondCustodianEmail,
22 "[email protected]");
23 prefs->SetString(prefs::kSupervisedUserSecondCustodianObfuscatedGaiaId,
24 "85948533");
25}
26
27} // namespace supervised_user_test_util