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

Unified Diff: chrome/test/live_sync/single_client_live_themes_sync_test.cc

Issue 6873061: [Sync] Revamp and re-enable themes/extensions sync integration tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 9 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/live_sync/single_client_live_themes_sync_test.cc
diff --git a/chrome/test/live_sync/single_client_live_themes_sync_test.cc b/chrome/test/live_sync/single_client_live_themes_sync_test.cc
index 8ae2c3b1f1381bc67e061884a12adeb9659b9ccc..70b4fb9aef10df3461845995be9b4f82053b6690 100644
--- a/chrome/test/live_sync/single_client_live_themes_sync_test.cc
+++ b/chrome/test/live_sync/single_client_live_themes_sync_test.cc
@@ -3,9 +3,7 @@
// found in the LICENSE file.
#include "base/basictypes.h"
-#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/profile_sync_service_harness.h"
-#include "chrome/common/extensions/extension.h"
#include "chrome/test/live_sync/live_themes_sync_test.h"
class SingleClientLiveThemesSyncTest : public LiveThemesSyncTest {
@@ -24,34 +22,34 @@ class SingleClientLiveThemesSyncTest : public LiveThemesSyncTest {
IN_PROC_BROWSER_TEST_F(SingleClientLiveThemesSyncTest, CustomTheme) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
- ASSERT_EQ(NULL, GetCustomTheme(GetProfile(0)));
- ASSERT_EQ(NULL, GetCustomTheme(verifier()));
+ ASSERT_FALSE(UsingCustomTheme(GetProfile(0)));
+ ASSERT_FALSE(UsingCustomTheme(verifier()));
- SetTheme(GetProfile(0), GetTheme(0));
- SetTheme(verifier(), GetTheme(0));
- ASSERT_EQ(GetTheme(0), GetCustomTheme(GetProfile(0)));
- ASSERT_EQ(GetTheme(0), GetCustomTheme(verifier()));
+ UseCustomTheme(GetProfile(0), 0);
+ UseCustomTheme(verifier(), 0);
+ ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0)));
+ ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion(
"Waiting for custom themes change."));
- ASSERT_EQ(GetTheme(0), GetCustomTheme(GetProfile(0)));
- ASSERT_EQ(GetTheme(0), GetCustomTheme(verifier()));
+ ASSERT_EQ(GetCustomTheme(0), GetThemeID(GetProfile(0)));
+ ASSERT_EQ(GetCustomTheme(0), GetThemeID(verifier()));
}
IN_PROC_BROWSER_TEST_F(SingleClientLiveThemesSyncTest, NativeTheme) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
- SetTheme(GetProfile(0), GetTheme(0));
- SetTheme(verifier(), GetTheme(0));
+ UseCustomTheme(GetProfile(0), 0);
+ UseCustomTheme(verifier(), 0);
ASSERT_FALSE(UsingNativeTheme(GetProfile(0)));
ASSERT_FALSE(UsingNativeTheme(verifier()));
ASSERT_TRUE(GetClient(0)->AwaitSyncCycleCompletion(
"Waiting for custom themes change."));
- SetNativeTheme(GetProfile(0));
- SetNativeTheme(verifier());
+ UseNativeTheme(GetProfile(0));
+ UseNativeTheme(verifier());
ASSERT_TRUE(UsingNativeTheme(GetProfile(0)));
ASSERT_TRUE(UsingNativeTheme(verifier()));
@@ -65,8 +63,8 @@ IN_PROC_BROWSER_TEST_F(SingleClientLiveThemesSyncTest, NativeTheme) {
IN_PROC_BROWSER_TEST_F(SingleClientLiveThemesSyncTest, DefaultTheme) {
ASSERT_TRUE(SetupSync()) << "SetupSync() failed.";
- SetTheme(GetProfile(0), GetTheme(0));
- SetTheme(verifier(), GetTheme(0));
+ UseCustomTheme(GetProfile(0), 0);
+ UseCustomTheme(verifier(), 0);
ASSERT_FALSE(UsingDefaultTheme(GetProfile(0)));
ASSERT_FALSE(UsingDefaultTheme(verifier()));

Powered by Google App Engine
This is Rietveld 408576698