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/profile_sync_service.h" |
11 #include "components/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 { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 GetFakeServer()->GetSyncEntitiesByModelType(syncer::EXTENSIONS); | 100 GetFakeServer()->GetSyncEntitiesByModelType(syncer::EXTENSIONS); |
101 EXPECT_EQ(0ul, server_extensions.size()); | 101 EXPECT_EQ(0ul, server_extensions.size()); |
102 | 102 |
103 AwaitMatchStatusChangeChecker checker( | 103 AwaitMatchStatusChangeChecker checker( |
104 base::Bind(&ExtensionCountCheck, GetProfile(0), 0u), | 104 base::Bind(&ExtensionCountCheck, GetProfile(0), 0u), |
105 "Waiting for profile to have no extensions"); | 105 "Waiting for profile to have no extensions"); |
106 checker.Wait(); | 106 checker.Wait(); |
107 EXPECT_TRUE(!checker.TimedOut()); | 107 EXPECT_TRUE(!checker.TimedOut()); |
108 EXPECT_TRUE(GetInstalledExtensions(GetProfile(0)).empty()); | 108 EXPECT_TRUE(GetInstalledExtensions(GetProfile(0)).empty()); |
109 } | 109 } |
OLD | NEW |