OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/test/live_sync/live_extensions_sync_test.h" | 5 #include "chrome/test/live_sync/live_extensions_sync_test.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/common/extensions/extension.h" | 9 #include "chrome/common/extensions/extension.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest, | 22 IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest, |
23 StartWithNoExtensions) { | 23 StartWithNoExtensions) { |
24 ASSERT_TRUE(SetupSync()); | 24 ASSERT_TRUE(SetupSync()); |
25 | 25 |
26 ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier()); | 26 ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier()); |
27 } | 27 } |
28 | 28 |
29 // TODO(rsimha): Enable after http://crbug.com/70028 is fixed. | 29 // TODO(rsimha): Enable after http://crbug.com/70028 is fixed. |
30 IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest, | 30 IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest, |
31 FAILS_StartWithSameExtensions) { | 31 DISABLED_StartWithSameExtensions) { |
32 ASSERT_TRUE(SetupClients()); | 32 ASSERT_TRUE(SetupClients()); |
33 | 33 |
34 const int kNumExtensions = 5; | 34 const int kNumExtensions = 5; |
35 for (int i = 0; i < kNumExtensions; ++i) { | 35 for (int i = 0; i < kNumExtensions; ++i) { |
36 InstallExtension(GetProfile(0), GetExtension(i)); | 36 InstallExtension(GetProfile(0), GetExtension(i)); |
37 InstallExtension(GetProfile(1), GetExtension(i)); | 37 InstallExtension(GetProfile(1), GetExtension(i)); |
38 InstallExtension(verifier(), GetExtension(i)); | 38 InstallExtension(verifier(), GetExtension(i)); |
39 } | 39 } |
40 | 40 |
41 ASSERT_TRUE(SetupSync()); | 41 ASSERT_TRUE(SetupSync()); |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 InstallAllPendingExtensions(GetProfile(0)); | 116 InstallAllPendingExtensions(GetProfile(0)); |
117 InstallAllPendingExtensions(GetProfile(1)); | 117 InstallAllPendingExtensions(GetProfile(1)); |
118 | 118 |
119 ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier()); | 119 ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier()); |
120 } | 120 } |
121 | 121 |
122 // TODO(akalin): Add tests exercising: | 122 // TODO(akalin): Add tests exercising: |
123 // - Extensions enabled/disabled state sync behavior | 123 // - Extensions enabled/disabled state sync behavior |
124 // - Extension uninstallation | 124 // - Extension uninstallation |
125 // - Offline installation/uninstallation behavior | 125 // - Offline installation/uninstallation behavior |
OLD | NEW |