blob: c629b26dcff5a7deb0b2a5c6057b5ef977bdb9f7 [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"
8#include "chrome/common/pref_names.h"
9#include "components/prefs/pref_service.h"
10
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