blob: 75bd56efbf028f8c4d11892312f6eb0ca11a0fb2 [file] [log] [blame]
James Cook3bd49ab2020-04-02 23:47:551// Copyright 2020 The Chromium Authors. All rights reserved.
2// 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) {
14 DCHECK(profile->IsSupervised());
15 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