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

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

Issue 388563004: Fix syncing of system theme on Linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « no previous file | chrome/browser/themes/theme_service.h » ('j') | 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) 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/test/integration/profile_sync_service_harness.h" 6 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
7 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h" 7 #include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
8 #include "chrome/browser/sync/test/integration/sync_test.h" 8 #include "chrome/browser/sync/test/integration/sync_test.h"
9 #include "chrome/browser/sync/test/integration/themes_helper.h" 9 #include "chrome/browser/sync/test/integration/themes_helper.h"
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 ASSERT_FALSE(UsingCustomTheme(GetProfile(1))); 61 ASSERT_FALSE(UsingCustomTheme(GetProfile(1)));
62 // TODO(akalin): Add functions to simulate when a pending extension 62 // TODO(akalin): Add functions to simulate when a pending extension
63 // is installed as well as when a pending extension fails to 63 // is installed as well as when a pending extension fails to
64 // install. 64 // install.
65 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0))); 65 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0)));
66 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier())); 66 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
67 } 67 }
68 68
69 // TCM ID - 3599303. 69 // TCM ID - 3599303.
70 // TODO(sync): Fails on Chrome OS. See http://crbug.com/84575. 70 // TODO(sync): Fails on Chrome OS. See http://crbug.com/84575.
71 // TODO(erg): Fails on linux_aura. See http://crbug.com/304554 71 #if defined(OS_CHROMEOS)
72 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
73 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, DISABLED_NativeTheme) { 72 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, DISABLED_NativeTheme) {
74 #else 73 #else
75 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, NativeTheme) { 74 IN_PROC_BROWSER_TEST_F(TwoClientThemesSyncTest, NativeTheme) {
76 #endif // OS_CHROMEOS 75 #endif // OS_CHROMEOS
77 ASSERT_TRUE(SetupSync()) << "SetupSync() failed."; 76 ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
78 77
79 UseCustomTheme(GetProfile(0), 0); 78 UseCustomTheme(GetProfile(0), 0);
80 UseCustomTheme(GetProfile(1), 0); 79 UseCustomTheme(GetProfile(1), 0);
81 UseCustomTheme(verifier(), 0); 80 UseCustomTheme(verifier(), 0);
82 81
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier())); 248 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
250 249
251 ASSERT_TRUE(GetClient(1)->EnableSyncForAllDatatypes()); 250 ASSERT_TRUE(GetClient(1)->EnableSyncForAllDatatypes());
252 ASSERT_TRUE(AwaitQuiescence()); 251 ASSERT_TRUE(AwaitQuiescence());
253 252
254 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0))); 253 ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0)));
255 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier())); 254 ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
256 ASSERT_FALSE(UsingCustomTheme(GetProfile(1))); 255 ASSERT_FALSE(UsingCustomTheme(GetProfile(1)));
257 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0))); 256 ASSERT_TRUE(ThemeIsPendingInstall(GetProfile(1), GetCustomTheme(0)));
258 } 257 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/themes/theme_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698