| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/test/integration/extensions_helper.h" | 6 #include "chrome/browser/sync/test/integration/extensions_helper.h" |
| 7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.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 extensions_helper::AwaitAllProfilesHaveSameExtensionsAsVerifier; | 11 using extensions_helper::AwaitAllProfilesHaveSameExtensionsAsVerifier; |
| 12 using extensions_helper::AllProfilesHaveSameExtensionsAsVerifier; | 12 using extensions_helper::AllProfilesHaveSameExtensionsAsVerifier; |
| 13 using extensions_helper::DisableExtension; | 13 using extensions_helper::DisableExtension; |
| 14 using extensions_helper::EnableExtension; | 14 using extensions_helper::EnableExtension; |
| 15 using extensions_helper::HasSameExtensionsAsVerifier; | 15 using extensions_helper::HasSameExtensionsAsVerifier; |
| 16 using extensions_helper::IncognitoDisableExtension; | 16 using extensions_helper::IncognitoDisableExtension; |
| 17 using extensions_helper::IncognitoEnableExtension; | 17 using extensions_helper::IncognitoEnableExtension; |
| 18 using extensions_helper::InstallExtension; | 18 using extensions_helper::InstallExtension; |
| 19 using extensions_helper::UninstallExtension; | 19 using extensions_helper::UninstallExtension; |
| 20 | 20 |
| 21 class TwoClientExtensionsSyncTest : public SyncTest { | 21 class TwoClientExtensionsSyncTest : public SyncTest { |
| 22 public: | 22 public: |
| 23 TwoClientExtensionsSyncTest() : SyncTest(TWO_CLIENT) {} | 23 TwoClientExtensionsSyncTest() : SyncTest(TWO_CLIENT) {} |
| 24 | 24 |
| 25 virtual ~TwoClientExtensionsSyncTest() {} | 25 ~TwoClientExtensionsSyncTest() override {} |
| 26 bool TestUsesSelfNotifications() override { return false; } | 26 bool TestUsesSelfNotifications() override { return false; } |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 DISALLOW_COPY_AND_ASSIGN(TwoClientExtensionsSyncTest); | 29 DISALLOW_COPY_AND_ASSIGN(TwoClientExtensionsSyncTest); |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest, StartWithNoExtensions) { | 32 IN_PROC_BROWSER_TEST_F(TwoClientExtensionsSyncTest, StartWithNoExtensions) { |
| 33 ASSERT_TRUE(SetupSync()); | 33 ASSERT_TRUE(SetupSync()); |
| 34 ASSERT_TRUE(AwaitAllProfilesHaveSameExtensionsAsVerifier()); | 34 ASSERT_TRUE(AwaitAllProfilesHaveSameExtensionsAsVerifier()); |
| 35 } | 35 } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 ASSERT_TRUE(AwaitAllProfilesHaveSameExtensionsAsVerifier()); | 198 ASSERT_TRUE(AwaitAllProfilesHaveSameExtensionsAsVerifier()); |
| 199 | 199 |
| 200 UninstallExtension(GetProfile(0), 0); | 200 UninstallExtension(GetProfile(0), 0); |
| 201 UninstallExtension(verifier(), 0); | 201 UninstallExtension(verifier(), 0); |
| 202 | 202 |
| 203 ASSERT_TRUE(AwaitAllProfilesHaveSameExtensionsAsVerifier()); | 203 ASSERT_TRUE(AwaitAllProfilesHaveSameExtensionsAsVerifier()); |
| 204 } | 204 } |
| 205 | 205 |
| 206 // TODO(akalin): Add tests exercising: | 206 // TODO(akalin): Add tests exercising: |
| 207 // - Offline installation/uninstallation behavior | 207 // - Offline installation/uninstallation behavior |
| OLD | NEW |