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

Side by Side Diff: chrome/browser/sync/test/integration/single_client_supervised_user_settings_sync_test.cc

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/prefs/pref_service.h" 6 #include "base/prefs/pref_service.h"
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
9 #include "chrome/browser/supervised_user/supervised_user_constants.h" 9 #include "chrome/browser/supervised_user/supervised_user_constants.h"
10 #include "chrome/browser/supervised_user/supervised_user_service.h" 10 #include "chrome/browser/supervised_user/supervised_user_service.h"
11 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 11 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
12 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" 12 #include "chrome/browser/supervised_user/supervised_user_settings_service.h"
13 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor y.h" 13 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor y.h"
14 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 14 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
15 #include "chrome/browser/sync/test/integration/sync_test.h" 15 #include "chrome/browser/sync/test/integration/sync_test.h"
16 #include "chrome/common/chrome_switches.h" 16 #include "chrome/common/chrome_switches.h"
17 17
18 class SingleClientSupervisedUserSettingsSyncTest : public SyncTest { 18 class SingleClientSupervisedUserSettingsSyncTest : public SyncTest {
19 public: 19 public:
20 SingleClientSupervisedUserSettingsSyncTest() : SyncTest(SINGLE_CLIENT) {} 20 SingleClientSupervisedUserSettingsSyncTest() : SyncTest(SINGLE_CLIENT) {}
21 21
22 virtual ~SingleClientSupervisedUserSettingsSyncTest() {} 22 virtual ~SingleClientSupervisedUserSettingsSyncTest() {}
23 23
24 // SyncTest overrides: 24 // SyncTest overrides:
25 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { 25 virtual void SetUpCommandLine(CommandLine* command_line) override {
26 SyncTest::SetUpCommandLine(command_line); 26 SyncTest::SetUpCommandLine(command_line);
27 command_line->AppendSwitchASCII(switches::kSupervisedUserId, "asdf"); 27 command_line->AppendSwitchASCII(switches::kSupervisedUserId, "asdf");
28 } 28 }
29 }; 29 };
30 30
31 IN_PROC_BROWSER_TEST_F(SingleClientSupervisedUserSettingsSyncTest, Sanity) { 31 IN_PROC_BROWSER_TEST_F(SingleClientSupervisedUserSettingsSyncTest, Sanity) {
32 ASSERT_TRUE(SetupClients()); 32 ASSERT_TRUE(SetupClients());
33 for (int i = 0; i < num_clients(); ++i) { 33 for (int i = 0; i < num_clients(); ++i) {
34 Profile* profile = GetProfile(i); 34 Profile* profile = GetProfile(i);
35 // Supervised users are prohibited from signing into the browser. Currently 35 // Supervised users are prohibited from signing into the browser. Currently
(...skipping 11 matching lines...) Expand all
47 allow_signin.Pass()); 47 allow_signin.Pass());
48 48
49 // The user should not be signed in. 49 // The user should not be signed in.
50 std::string username; 50 std::string username;
51 // ProfileSyncServiceHarness sets the password, which can't be empty. 51 // ProfileSyncServiceHarness sets the password, which can't be empty.
52 std::string password = "password"; 52 std::string password = "password";
53 GetClient(i)->SetCredentials(username, password); 53 GetClient(i)->SetCredentials(username, password);
54 } 54 }
55 ASSERT_TRUE(SetupSync()); 55 ASSERT_TRUE(SetupSync());
56 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698