| 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 "chrome/browser/themes/theme_service.h" | 5 #include "chrome/browser/themes/theme_service.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
| 10 #include "chrome/browser/extensions/extension_service_unittest.h" | 10 #include "chrome/browser/extensions/extension_service_unittest.h" |
| 11 #include "chrome/browser/extensions/unpacked_installer.h" | 11 #include "chrome/browser/extensions/unpacked_installer.h" |
| 12 #include "chrome/browser/managed_mode/managed_user_service.h" | 12 #include "chrome/browser/managed_mode/managed_user_service.h" |
| 13 #include "chrome/browser/managed_mode/managed_user_service_factory.h" | 13 #include "chrome/browser/managed_mode/managed_user_service_factory.h" |
| 14 #include "chrome/browser/themes/custom_theme_supplier.h" | 14 #include "chrome/browser/themes/custom_theme_supplier.h" |
| 15 #include "chrome/browser/themes/theme_service_factory.h" | 15 #include "chrome/browser/themes/theme_service_factory.h" |
| 16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
| 17 #include "chrome/common/extensions/extension.h" | |
| 18 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
| 19 #include "chrome/test/base/testing_browser_process.h" | 18 #include "chrome/test/base/testing_browser_process.h" |
| 20 #include "chrome/test/base/testing_profile.h" | 19 #include "chrome/test/base/testing_profile.h" |
| 21 #include "chrome/test/base/testing_profile_manager.h" | 20 #include "chrome/test/base/testing_profile_manager.h" |
| 22 #include "content/public/test/test_utils.h" | 21 #include "content/public/test/test_utils.h" |
| 22 #include "extensions/common/extension.h" |
| 23 #include "testing/gtest/include/gtest/gtest.h" | 23 #include "testing/gtest/include/gtest/gtest.h" |
| 24 | 24 |
| 25 namespace theme_service_internal { | 25 namespace theme_service_internal { |
| 26 | 26 |
| 27 class ThemeServiceTest : public ExtensionServiceTestBase { | 27 class ThemeServiceTest : public ExtensionServiceTestBase { |
| 28 public: | 28 public: |
| 29 ThemeServiceTest() : is_managed_(false), | 29 ThemeServiceTest() : is_managed_(false), |
| 30 manager_(TestingBrowserProcess::GetGlobal()) {} | 30 manager_(TestingBrowserProcess::GetGlobal()) {} |
| 31 virtual ~ThemeServiceTest() {} | 31 virtual ~ThemeServiceTest() {} |
| 32 | 32 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 ThemeServiceFactory::GetForProfile(profile_.get()); | 260 ThemeServiceFactory::GetForProfile(profile_.get()); |
| 261 theme_service->UseDefaultTheme(); | 261 theme_service->UseDefaultTheme(); |
| 262 EXPECT_TRUE(theme_service->UsingDefaultTheme()); | 262 EXPECT_TRUE(theme_service->UsingDefaultTheme()); |
| 263 EXPECT_TRUE(get_theme_supplier(theme_service)); | 263 EXPECT_TRUE(get_theme_supplier(theme_service)); |
| 264 EXPECT_EQ(get_theme_supplier(theme_service)->get_theme_type(), | 264 EXPECT_EQ(get_theme_supplier(theme_service)->get_theme_type(), |
| 265 CustomThemeSupplier::MANAGED_USER_THEME); | 265 CustomThemeSupplier::MANAGED_USER_THEME); |
| 266 } | 266 } |
| 267 #endif | 267 #endif |
| 268 | 268 |
| 269 }; // namespace theme_service_internal | 269 }; // namespace theme_service_internal |
| OLD | NEW |