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" | |
7 #include "chrome/browser/sync/test/integration/extensions_helper.h" | 6 #include "chrome/browser/sync/test/integration/extensions_helper.h" |
8 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 7 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
9 #include "chrome/browser/sync/test/integration/sync_test.h" | 8 #include "chrome/browser/sync/test/integration/sync_test.h" |
| 9 #include "components/browser_sync/browser/profile_sync_service.h" |
10 | 10 |
11 using extensions_helper::AllProfilesHaveSameExtensionsAsVerifier; | 11 using extensions_helper::AllProfilesHaveSameExtensionsAsVerifier; |
12 using extensions_helper::InstallExtension; | 12 using extensions_helper::InstallExtension; |
13 using sync_integration_test_util::AwaitCommitActivityCompletion; | 13 using sync_integration_test_util::AwaitCommitActivityCompletion; |
14 | 14 |
15 class SingleClientExtensionsSyncTest : public SyncTest { | 15 class SingleClientExtensionsSyncTest : public SyncTest { |
16 public: | 16 public: |
17 SingleClientExtensionsSyncTest() : SyncTest(SINGLE_CLIENT) {} | 17 SingleClientExtensionsSyncTest() : SyncTest(SINGLE_CLIENT) {} |
18 | 18 |
19 ~SingleClientExtensionsSyncTest() override {} | 19 ~SingleClientExtensionsSyncTest() override {} |
(...skipping 29 matching lines...) Expand all Loading... |
49 const int kNumExtensions = 5; | 49 const int kNumExtensions = 5; |
50 for (int i = 0; i < kNumExtensions; ++i) { | 50 for (int i = 0; i < kNumExtensions; ++i) { |
51 InstallExtension(GetProfile(0), i); | 51 InstallExtension(GetProfile(0), i); |
52 InstallExtension(verifier(), i); | 52 InstallExtension(verifier(), i); |
53 } | 53 } |
54 | 54 |
55 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService((0)))); | 55 ASSERT_TRUE(AwaitCommitActivityCompletion(GetSyncService((0)))); |
56 | 56 |
57 ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier()); | 57 ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier()); |
58 } | 58 } |
OLD | NEW |