OLD | NEW |
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" | |
7 #include "base/values.h" | 6 #include "base/values.h" |
8 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/supervised_user/supervised_user_constants.h" | 8 #include "chrome/browser/supervised_user/supervised_user_constants.h" |
10 #include "chrome/browser/supervised_user/supervised_user_service.h" | 9 #include "chrome/browser/supervised_user/supervised_user_service.h" |
11 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" | 10 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" |
12 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" | 11 #include "chrome/browser/supervised_user/supervised_user_settings_service.h" |
13 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor
y.h" | 12 #include "chrome/browser/supervised_user/supervised_user_settings_service_factor
y.h" |
14 #include "chrome/browser/sync/profile_sync_service_factory.h" | 13 #include "chrome/browser/sync/profile_sync_service_factory.h" |
15 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 14 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
16 #include "chrome/browser/sync/test/integration/sync_test.h" | 15 #include "chrome/browser/sync/test/integration/sync_test.h" |
17 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
18 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
19 #include "components/browser_sync/browser/profile_sync_service.h" | 18 #include "components/browser_sync/browser/profile_sync_service.h" |
| 19 #include "components/prefs/pref_service.h" |
20 | 20 |
21 class SingleClientSupervisedUserSettingsSyncTest : public SyncTest { | 21 class SingleClientSupervisedUserSettingsSyncTest : public SyncTest { |
22 public: | 22 public: |
23 SingleClientSupervisedUserSettingsSyncTest() : SyncTest(SINGLE_CLIENT) {} | 23 SingleClientSupervisedUserSettingsSyncTest() : SyncTest(SINGLE_CLIENT) {} |
24 | 24 |
25 ~SingleClientSupervisedUserSettingsSyncTest() override {} | 25 ~SingleClientSupervisedUserSettingsSyncTest() override {} |
26 | 26 |
27 // SyncTest overrides: | 27 // SyncTest overrides: |
28 void SetUpCommandLine(base::CommandLine* command_line) override { | 28 void SetUpCommandLine(base::CommandLine* command_line) override { |
29 SyncTest::SetUpCommandLine(command_line); | 29 SyncTest::SetUpCommandLine(command_line); |
(...skipping 22 matching lines...) Expand all Loading... |
52 browser()->profile(), | 52 browser()->profile(), |
53 GoogleServiceAuthError(GoogleServiceAuthError::NONE), | 53 GoogleServiceAuthError(GoogleServiceAuthError::NONE), |
54 std::string("token value doesn't matter in tests")); | 54 std::string("token value doesn't matter in tests")); |
55 | 55 |
56 ASSERT_TRUE(GetClient(0)->AwaitBackendInitialization()); | 56 ASSERT_TRUE(GetClient(0)->AwaitBackendInitialization()); |
57 ASSERT_TRUE(GetClient(0)->AwaitSyncSetupCompletion()); | 57 ASSERT_TRUE(GetClient(0)->AwaitSyncSetupCompletion()); |
58 | 58 |
59 // TODO(pvalenzuela): Add additional tests and some verification of sync- | 59 // TODO(pvalenzuela): Add additional tests and some verification of sync- |
60 // specific features (e.g., assert certain datatypes are syncing). | 60 // specific features (e.g., assert certain datatypes are syncing). |
61 } | 61 } |
OLD | NEW |