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/macros.h" |
| 6 #include "build/build_config.h" |
6 #include "chrome/browser/sync/test/integration/extensions_helper.h" | 7 #include "chrome/browser/sync/test/integration/extensions_helper.h" |
7 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 8 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
8 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" | 9 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" |
9 #include "chrome/browser/sync/test/integration/sync_test.h" | 10 #include "chrome/browser/sync/test/integration/sync_test.h" |
10 | 11 |
11 using extensions_helper::AwaitAllProfilesHaveSameExtensions; | 12 using extensions_helper::AwaitAllProfilesHaveSameExtensions; |
12 using extensions_helper::AllProfilesHaveSameExtensions; | 13 using extensions_helper::AllProfilesHaveSameExtensions; |
13 using extensions_helper::DisableExtension; | 14 using extensions_helper::DisableExtension; |
14 using extensions_helper::EnableExtension; | 15 using extensions_helper::EnableExtension; |
15 using extensions_helper::GetInstalledExtensions; | 16 using extensions_helper::GetInstalledExtensions; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 ASSERT_EQ(1u, GetInstalledExtensions(GetProfile(0)).size()); | 206 ASSERT_EQ(1u, GetInstalledExtensions(GetProfile(0)).size()); |
206 | 207 |
207 UninstallExtension(GetProfile(0), 0); | 208 UninstallExtension(GetProfile(0), 0); |
208 | 209 |
209 ASSERT_TRUE(AwaitAllProfilesHaveSameExtensions()); | 210 ASSERT_TRUE(AwaitAllProfilesHaveSameExtensions()); |
210 EXPECT_TRUE(GetInstalledExtensions(GetProfile(0)).empty()); | 211 EXPECT_TRUE(GetInstalledExtensions(GetProfile(0)).empty()); |
211 } | 212 } |
212 | 213 |
213 // TODO(akalin): Add tests exercising: | 214 // TODO(akalin): Add tests exercising: |
214 // - Offline installation/uninstallation behavior | 215 // - Offline installation/uninstallation behavior |
OLD | NEW |