| 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/macros.h" | 5 #include "base/macros.h" |
| 6 #include "chrome/browser/sync/test/integration/await_match_status_change_checker
.h" | 6 #include "chrome/browser/sync/test/integration/await_match_status_change_checker
.h" |
| 7 #include "chrome/browser/sync/test/integration/extensions_helper.h" | 7 #include "chrome/browser/sync/test/integration/extensions_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 #include "components/browser_sync/browser/profile_sync_service.h" | 10 #include "components/browser_sync/browser/profile_sync_service.h" |
| 11 #include "sync/test/fake_server/tombstone_entity.h" | 11 #include "components/sync/test/fake_server/tombstone_entity.h" |
| 12 | 12 |
| 13 using extensions_helper::AllProfilesHaveSameExtensionsAsVerifier; | 13 using extensions_helper::AllProfilesHaveSameExtensionsAsVerifier; |
| 14 using extensions_helper::DisableExtension; | 14 using extensions_helper::DisableExtension; |
| 15 using extensions_helper::GetInstalledExtensions; | 15 using extensions_helper::GetInstalledExtensions; |
| 16 using extensions_helper::InstallExtension; | 16 using extensions_helper::InstallExtension; |
| 17 using extensions_helper::InstallExtensionForAllProfiles; | 17 using extensions_helper::InstallExtensionForAllProfiles; |
| 18 using sync_integration_test_util::AwaitCommitActivityCompletion; | 18 using sync_integration_test_util::AwaitCommitActivityCompletion; |
| 19 | 19 |
| 20 class SingleClientExtensionsSyncTest : public SyncTest { | 20 class SingleClientExtensionsSyncTest : public SyncTest { |
| 21 public: | 21 public: |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 GetFakeServer()->GetSyncEntitiesByModelType(syncer::EXTENSIONS); | 99 GetFakeServer()->GetSyncEntitiesByModelType(syncer::EXTENSIONS); |
| 100 EXPECT_EQ(0ul, server_extensions.size()); | 100 EXPECT_EQ(0ul, server_extensions.size()); |
| 101 | 101 |
| 102 AwaitMatchStatusChangeChecker checker( | 102 AwaitMatchStatusChangeChecker checker( |
| 103 base::Bind(&ExtensionCountCheck, GetProfile(0), 0u), | 103 base::Bind(&ExtensionCountCheck, GetProfile(0), 0u), |
| 104 "Waiting for profile to have no extensions"); | 104 "Waiting for profile to have no extensions"); |
| 105 checker.Wait(); | 105 checker.Wait(); |
| 106 EXPECT_TRUE(!checker.TimedOut()); | 106 EXPECT_TRUE(!checker.TimedOut()); |
| 107 EXPECT_TRUE(GetInstalledExtensions(GetProfile(0)).empty()); | 107 EXPECT_TRUE(GetInstalledExtensions(GetProfile(0)).empty()); |
| 108 } | 108 } |
| OLD | NEW |