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

Side by Side Diff: chrome/browser/sync/test/integration/two_client_themes_sync_test.cc

Issue 26622003: linux_aura: Turn it on again. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT and test against the recently committed nacl patch. Created 7 years, 1 month 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
OLDNEW
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/basictypes.h"
6 #include "chrome/browser/sync/profile_sync_service_harness.h" 6 #include "chrome/browser/sync/profile_sync_service_harness.h"
7 #include "chrome/browser/sync/test/integration/sync_test.h" 7 #include "chrome/browser/sync/test/integration/sync_test.h"
8 #include "chrome/browser/sync/test/integration/themes_helper.h" 8 #include "chrome/browser/sync/test/integration/themes_helper.h"
9 9
10 using themes_helper::GetCustomTheme; 10 using themes_helper::GetCustomTheme;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 ASSERT_FALSE(UsingCustomTheme(GetProfile(1))); 50 ASSERT_FALSE(UsingCustomTheme(GetProfile(1)));
51 // TODO(akalin): Add functions to simulate when a pending extension 51 // TODO(akalin): Add functions to simulate when a pending extension
52 // is installed as well as when a pending extension fails to 52 // is installed as well as when a pending extension fails to
53 // install. 53 // install.
54 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0))); 54 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0)));
55 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier())); 55 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
56 } 56 }
57 57
58 // TCM ID - 3599303. 58 // TCM ID - 3599303.
59 // TODO(sync): Fails on Chrome OS. See http://crbug.com/84575. 59 // TODO(sync): Fails on Chrome OS. See http://crbug.com/84575.
60 #if defined(OS_CHROMEOS) 60 // TODO(erg): Fails on linux_aura. See http://crbug.com/304554
61 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
61 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, DISABLED_NativeTheme) { 62 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, DISABLED_NativeTheme) {
62 #else 63 #else
63 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, NativeTheme) { 64 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, NativeTheme) {
64 #endif // OS_CHROMEOS 65 #endif // OS_CHROMEOS
65 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 66 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
66 67
67 UseCustomTheme(GetProfile(0), 0); 68 UseCustomTheme(GetProfile(0), 0);
68 UseCustomTheme(GetProfile(1), 0); 69 UseCustomTheme(GetProfile(1), 0);
69 UseCustomTheme(verifier(), 0); 70 UseCustomTheme(verifier(), 0);
70 71
(...skipping 28 matching lines...) Expand all
99 100
100 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1))); 101 ASSERT_TRUE(GetClient(0)->AwaitMutualSyncCycleCompletion(GetClient(1)));
101 102
102 ASSERT_TRUE(UsingDefaultTheme(GetProfile(0))); 103 ASSERT_TRUE(UsingDefaultTheme(GetProfile(0)));
103 ASSERT_TRUE(UsingDefaultTheme(GetProfile(1))); 104 ASSERT_TRUE(UsingDefaultTheme(GetProfile(1)));
104 ASSERT_TRUE(UsingDefaultTheme(verifier())); 105 ASSERT_TRUE(UsingDefaultTheme(verifier()));
105 } 106 }
106 107
107 // TCM ID - 7292065. 108 // TCM ID - 7292065.
108 // TODO(sync): Fails on Chrome OS. See http://crbug.com/84575. 109 // TODO(sync): Fails on Chrome OS. See http://crbug.com/84575.
109 #if defined(OS_CHROMEOS) 110 // TODO(erg): Fails on linux_aura. See http://crbug.com/304554
111 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
110 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, DISABLED_NativeDefaultRace) { 112 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, DISABLED_NativeDefaultRace) {
111 #else 113 #else
112 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, NativeDefaultRace) { 114 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, NativeDefaultRace) {
113 #endif // OS_CHROMEOS 115 #endif // OS_CHROMEOS
114 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 116 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
115 117
116 UseNativeTheme(GetProfile(0)); 118 UseNativeTheme(GetProfile(0));
117 UseDefaultTheme(GetProfile(1)); 119 UseDefaultTheme(GetProfile(1));
118 ASSERT_TRUE(UsingNativeTheme(GetProfile(0))); 120 ASSERT_TRUE(UsingNativeTheme(GetProfile(0)));
119 ASSERT_TRUE(UsingDefaultTheme(GetProfile(1))); 121 ASSERT_TRUE(UsingDefaultTheme(GetProfile(1)));
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier())); 238 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
237 239
238 ASSERT_TRUE(GetClient(1)->EnableSyncForAllDatatypes()); 240 ASSERT_TRUE(GetClient(1)->EnableSyncForAllDatatypes());
239 ASSERT_TRUE(AwaitQuiescence()); 241 ASSERT_TRUE(AwaitQuiescence());
240 242
241 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); 243 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0)));
242 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier())); 244 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
243 ASSERT_FALSE(UsingCustomTheme(GetProfile(1))); 245 ASSERT_FALSE(UsingCustomTheme(GetProfile(1)));
244 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0))); 246 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0)));
245 } 247 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698