Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(710)

Side by Side Diff: chrome/test/live_sync/two_client_live_extensions_sync_test.cc

Issue 6373005: Annotate failing extensions sync tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/live_sync/single_client_live_extensions_sync_test.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 class TwoClientLiveExtensionsSyncTest : public LiveExtensionsSyncTest { 11 class TwoClientLiveExtensionsSyncTest : public LiveExtensionsSyncTest {
12 public: 12 public:
13 TwoClientLiveExtensionsSyncTest() 13 TwoClientLiveExtensionsSyncTest()
14 : LiveExtensionsSyncTest(TWO_CLIENT) {} 14 : LiveExtensionsSyncTest(TWO_CLIENT) {}
15 15
16 virtual ~TwoClientLiveExtensionsSyncTest() {} 16 virtual ~TwoClientLiveExtensionsSyncTest() {}
17 17
18 private: 18 private:
19 DISALLOW_COPY_AND_ASSIGN(TwoClientLiveExtensionsSyncTest); 19 DISALLOW_COPY_AND_ASSIGN(TwoClientLiveExtensionsSyncTest);
20 }; 20 };
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 IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest, 30 IN_PROC_BROWSER_TEST_F(TwoClientLiveExtensionsSyncTest,
30 StartWithSameExtensions) { 31 FAILS_StartWithSameExtensions) {
31 ASSERT_TRUE(SetupClients()); 32 ASSERT_TRUE(SetupClients());
32 33
33 const int kNumExtensions = 5; 34 const int kNumExtensions = 5;
34 for (int i = 0; i < kNumExtensions; ++i) { 35 for (int i = 0; i < kNumExtensions; ++i) {
35 InstallExtension(GetProfile(0), GetExtension(i)); 36 InstallExtension(GetProfile(0), GetExtension(i));
36 InstallExtension(GetProfile(1), GetExtension(i)); 37 InstallExtension(GetProfile(1), GetExtension(i));
37 InstallExtension(verifier(), GetExtension(i)); 38 InstallExtension(verifier(), GetExtension(i));
38 } 39 }
39 40
40 ASSERT_TRUE(SetupSync()); 41 ASSERT_TRUE(SetupSync());
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 InstallAllPendingExtensions(GetProfile(0)); 116 InstallAllPendingExtensions(GetProfile(0));
116 InstallAllPendingExtensions(GetProfile(1)); 117 InstallAllPendingExtensions(GetProfile(1));
117 118
118 ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier()); 119 ASSERT_TRUE(AllProfilesHaveSameExtensionsAsVerifier());
119 } 120 }
120 121
121 // TODO(akalin): Add tests exercising: 122 // TODO(akalin): Add tests exercising:
122 // - Extensions enabled/disabled state sync behavior 123 // - Extensions enabled/disabled state sync behavior
123 // - Extension uninstallation 124 // - Extension uninstallation
124 // - Offline installation/uninstallation behavior 125 // - Offline installation/uninstallation behavior
OLDNEW
« no previous file with comments | « chrome/test/live_sync/single_client_live_extensions_sync_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698