| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_themes_sync_test.h" | |
| 6 | |
| 7 #include "base/basictypes.h" | 5 #include "base/basictypes.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 6 #include "chrome/browser/profiles/profile.h" |
| 7 #include "chrome/browser/sync/profile_sync_service_harness.h" |
| 9 #include "chrome/common/extensions/extension.h" | 8 #include "chrome/common/extensions/extension.h" |
| 9 #include "chrome/test/live_sync/live_themes_sync_test.h" |
| 10 | 10 |
| 11 class TwoClientLiveThemesSyncTest : public LiveThemesSyncTest { | 11 class TwoClientLiveThemesSyncTest : public LiveThemesSyncTest { |
| 12 public: | 12 public: |
| 13 TwoClientLiveThemesSyncTest() : LiveThemesSyncTest(TWO_CLIENT) {} | 13 TwoClientLiveThemesSyncTest() : LiveThemesSyncTest(TWO_CLIENT) {} |
| 14 virtual ~TwoClientLiveThemesSyncTest() {} | 14 virtual ~TwoClientLiveThemesSyncTest() {} |
| 15 | 15 |
| 16 private: | 16 private: |
| 17 DISALLOW_COPY_AND_ASSIGN(TwoClientLiveThemesSyncTest); | 17 DISALLOW_COPY_AND_ASSIGN(TwoClientLiveThemesSyncTest); |
| 18 }; | 18 }; |
| 19 | 19 |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 bool using_theme_0 = | 153 bool using_theme_0 = |
| 154 (GetCustomTheme(GetProfile(0)) == GetTheme(0)) && | 154 (GetCustomTheme(GetProfile(0)) == GetTheme(0)) && |
| 155 HasOrWillHaveCustomTheme(GetProfile(1), GetTheme(0)); | 155 HasOrWillHaveCustomTheme(GetProfile(1), GetTheme(0)); |
| 156 bool using_theme_1 = | 156 bool using_theme_1 = |
| 157 HasOrWillHaveCustomTheme(GetProfile(0), GetTheme(1)) && | 157 HasOrWillHaveCustomTheme(GetProfile(0), GetTheme(1)) && |
| 158 (GetCustomTheme(GetProfile(1)) == GetTheme(1)); | 158 (GetCustomTheme(GetProfile(1)) == GetTheme(1)); |
| 159 | 159 |
| 160 // Equivalent to using_theme_0 xor using_theme_1. | 160 // Equivalent to using_theme_0 xor using_theme_1. |
| 161 ASSERT_NE(using_theme_0, using_theme_1); | 161 ASSERT_NE(using_theme_0, using_theme_1); |
| 162 } | 162 } |
| OLD | NEW |