OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/basictypes.h" | 5 #include "base/basictypes.h" |
6 #include "chrome/browser/sync/profile_sync_service.h" | 6 #include "chrome/browser/sync/profile_sync_service.h" |
7 #include "chrome/browser/sync/test/integration/apps_helper.h" | 7 #include "chrome/browser/sync/test/integration/apps_helper.h" |
8 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 8 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
9 #include "chrome/browser/sync/test/integration/sync_test.h" | 9 #include "chrome/browser/sync/test/integration/sync_test.h" |
10 | 10 |
11 using apps_helper::AllProfilesHaveSameAppsAsVerifier; | 11 using apps_helper::AllProfilesHaveSameAppsAsVerifier; |
12 using apps_helper::InstallApp; | 12 using apps_helper::InstallApp; |
13 using apps_helper::InstallPlatformApp; | 13 using apps_helper::InstallPlatformApp; |
14 using sync_integration_test_util::AwaitCommitActivityCompletion; | 14 using sync_integration_test_util::AwaitCommitActivityCompletion; |
15 | 15 |
16 class SingleClientAppsSyncTest : public SyncTest { | 16 class SingleClientAppsSyncTest : public SyncTest { |
17 public: | 17 public: |
18 SingleClientAppsSyncTest() : SyncTest(SINGLE_CLIENT) {} | 18 SingleClientAppsSyncTest() : SyncTest(SINGLE_CLIENT) {} |
19 | 19 |
20 virtual ~SingleClientAppsSyncTest() {} | 20 ~SingleClientAppsSyncTest() override {} |
21 | 21 |
22 private: | 22 private: |
23 DISALLOW_COPY_AND_ASSIGN(SingleClientAppsSyncTest); | 23 DISALLOW_COPY_AND_ASSIGN(SingleClientAppsSyncTest); |
24 }; | 24 }; |
25 | 25 |
26 IN_PROC_BROWSER_TEST_F(SingleClientAppsSyncTest, StartWithNoApps) { | 26 IN_PROC_BROWSER_TEST_F(SingleClientAppsSyncTest, StartWithNoApps) { |
27 ASSERT_TRUE(SetupSync()); | 27 ASSERT_TRUE(SetupSync()); |
28 | 28 |
29 ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier()); | 29 ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier()); |
30 } | 30 } |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 const int kNumPlatformApps = 5; | 99 const int kNumPlatformApps = 5; |
100 for (int j = 0; j < kNumPlatformApps; ++i, ++j) { | 100 for (int j = 0; j < kNumPlatformApps; ++i, ++j) { |
101 InstallPlatformApp(GetProfile(0), i); | 101 InstallPlatformApp(GetProfile(0), i); |
102 InstallPlatformApp(verifier(), i); | 102 InstallPlatformApp(verifier(), i); |
103 } | 103 } |
104 | 104 |
105 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService((0)))); | 105 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService((0)))); |
106 | 106 |
107 ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier()); | 107 ASSERT_TRUE(AllProfilesHaveSameAppsAsVerifier()); |
108 } | 108 } |
OLD | NEW |