Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: chrome/browser/profile_resetter/automatic_profile_resetter_unittest.cc

Issue 403343002: Rename "managed (mode|user)" to "supervised user" (part 8) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix2 Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/profile_resetter/automatic_profile_resetter.h" 5 #include "chrome/browser/profile_resetter/automatic_profile_resetter.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 1250 matching lines...) Expand 10 before | Expand all | Expand 10 after
1261 1261
1262 mock_delegate().ExpectCallsToDependenciesSetUpMethods(); 1262 mock_delegate().ExpectCallsToDependenciesSetUpMethods();
1263 mock_delegate().ExpectCallsToGetterMethods(); 1263 mock_delegate().ExpectCallsToGetterMethods();
1264 uint32 expected_mask = HAS_EXPECTED_LOCAL_STATE_PREFERENCE | 1264 uint32 expected_mask = HAS_EXPECTED_LOCAL_STATE_PREFERENCE |
1265 LOCAL_STATE_IS_USER_CONTROLLED; 1265 LOCAL_STATE_IS_USER_CONTROLLED;
1266 EXPECT_CALL(resetter(), ReportStatistics(0x00u, expected_mask)); 1266 EXPECT_CALL(resetter(), ReportStatistics(0x00u, expected_mask));
1267 1267
1268 UnleashResetterAndWait(); 1268 UnleashResetterAndWait();
1269 } 1269 }
1270 1270
1271 TEST_F(AutomaticProfileResetterTest, InputManagedUserPreferencesCorrect) { 1271 TEST_F(AutomaticProfileResetterTest, InputSupervisedUserPreferencesCorrect) {
Pam (message me for reviews) 2014/07/23 21:13:39 This test isn't looking at preferences for managed
Marc Treib 2014/07/24 12:11:54 Good catch! The exact match for "ManagedUser" blin
1272 SetTestingProgram(ConstructProgramToCheckPreferences()); 1272 SetTestingProgram(ConstructProgramToCheckPreferences());
1273 SetTestingHashSeed(kTestHashSeed); 1273 SetTestingHashSeed(kTestHashSeed);
1274 1274
1275 TestingPrefServiceSyncable* prefs = profile()->GetTestingPrefService(); 1275 TestingPrefServiceSyncable* prefs = profile()->GetTestingPrefService();
1276 prefs->SetManagedPref(kTestPreferencePath, 1276 prefs->SetManagedPref(kTestPreferencePath,
1277 new base::StringValue(kTestPreferenceValue)); 1277 new base::StringValue(kTestPreferenceValue));
1278 1278
1279 mock_delegate().ExpectCallsToDependenciesSetUpMethods(); 1279 mock_delegate().ExpectCallsToDependenciesSetUpMethods();
1280 mock_delegate().ExpectCallsToGetterMethods(); 1280 mock_delegate().ExpectCallsToGetterMethods();
1281 uint32 expected_mask = HAS_EXPECTED_USER_PREFERENCE; 1281 uint32 expected_mask = HAS_EXPECTED_USER_PREFERENCE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 mock_delegate().ExpectCallsToDependenciesSetUpMethods(); 1371 mock_delegate().ExpectCallsToDependenciesSetUpMethods();
1372 mock_delegate().ExpectCallsToGetterMethods(); 1372 mock_delegate().ExpectCallsToGetterMethods();
1373 uint32 expected_mask = 1373 uint32 expected_mask =
1374 HAS_EXPECTED_MODULE_DIGEST_1 | HAS_EXPECTED_MODULE_DIGEST_2; 1374 HAS_EXPECTED_MODULE_DIGEST_1 | HAS_EXPECTED_MODULE_DIGEST_2;
1375 EXPECT_CALL(resetter(), ReportStatistics(0x00u, expected_mask)); 1375 EXPECT_CALL(resetter(), ReportStatistics(0x00u, expected_mask));
1376 1376
1377 UnleashResetterAndWait(); 1377 UnleashResetterAndWait();
1378 } 1378 }
1379 1379
1380 } // namespace 1380 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698