OLD | NEW |
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/macros.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 |
11 using themes_helper::AwaitThemeIsPendingInstall; | 11 using themes_helper::AwaitThemeIsPendingInstall; |
12 using themes_helper::AwaitUsingSystemTheme; | 12 using themes_helper::AwaitUsingSystemTheme; |
13 using themes_helper::AwaitUsingDefaultTheme; | 13 using themes_helper::AwaitUsingDefaultTheme; |
14 using themes_helper::GetCustomTheme; | 14 using themes_helper::GetCustomTheme; |
15 using themes_helper::GetThemeID; | 15 using themes_helper::GetThemeID; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 EXPECT_TRUE(UsingDefaultTheme(GetProfile(0))); | 130 EXPECT_TRUE(UsingDefaultTheme(GetProfile(0))); |
131 EXPECT_TRUE(UsingDefaultTheme(GetProfile(1))); | 131 EXPECT_TRUE(UsingDefaultTheme(GetProfile(1))); |
132 EXPECT_TRUE(UsingDefaultTheme(verifier())); | 132 EXPECT_TRUE(UsingDefaultTheme(verifier())); |
133 | 133 |
134 UseCustomTheme(GetProfile(0), 1); | 134 UseCustomTheme(GetProfile(0), 1); |
135 UseCustomTheme(verifier(), 1); | 135 UseCustomTheme(verifier(), 1); |
136 ASSERT_TRUE(AwaitThemeIsPendingInstall(GetProfile(1), GetCustomTheme(1))); | 136 ASSERT_TRUE(AwaitThemeIsPendingInstall(GetProfile(1), GetCustomTheme(1))); |
137 EXPECT_EQ(GetCustomTheme(1), GetThemeID(GetProfile(0))); | 137 EXPECT_EQ(GetCustomTheme(1), GetThemeID(GetProfile(0))); |
138 EXPECT_EQ(GetCustomTheme(1), GetThemeID(verifier())); | 138 EXPECT_EQ(GetCustomTheme(1), GetThemeID(verifier())); |
139 } | 139 } |
OLD | NEW |