| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/extensions/extension_browsertest.h" | 5 #include "chrome/browser/extensions/extension_browsertest.h" |
| 6 #include "chrome/browser/extensions/extensions_service.h" | 6 #include "chrome/browser/extensions/extensions_service.h" |
| 7 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" | 7 #include "chrome/browser/extensions/theme_installed_infobar_delegate.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/tab_contents/tab_contents.h" | 9 #include "chrome/browser/tab_contents/tab_contents.h" |
| 10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/test/ui_test_utils.h" | 11 #include "chrome/test/ui_test_utils.h" |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 // Theme ID used for testing. | 15 // Theme ID used for testing. |
| 16 const char* const theme_crx = "iamefpfkojoapidjnbafmgkgncegbkad"; | 16 const char* const theme_crx = "iamefpfkojoapidjnbafmgkgncegbkad"; |
| 17 | 17 |
| 18 } // namespace | 18 } // namespace |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 theme = browser()->profile()->GetTheme(); | 53 theme = browser()->profile()->GetTheme(); |
| 54 ASSERT_TRUE(theme); | 54 ASSERT_TRUE(theme); |
| 55 ASSERT_EQ(theme_crx, theme->id()); | 55 ASSERT_EQ(theme_crx, theme->id()); |
| 56 ASSERT_TRUE(InstallExtensionWithUI(theme_path, 0)); | 56 ASSERT_TRUE(InstallExtensionWithUI(theme_path, 0)); |
| 57 theme = browser()->profile()->GetTheme(); | 57 theme = browser()->profile()->GetTheme(); |
| 58 ASSERT_TRUE(theme); | 58 ASSERT_TRUE(theme); |
| 59 ASSERT_EQ(theme_crx, theme->id()); | 59 ASSERT_EQ(theme_crx, theme->id()); |
| 60 VerifyThemeInfoBarAndUndoInstall(); | 60 VerifyThemeInfoBarAndUndoInstall(); |
| 61 ASSERT_EQ(NULL, browser()->profile()->GetTheme()); | 61 ASSERT_EQ(NULL, browser()->profile()->GetTheme()); |
| 62 } | 62 } |
| OLD | NEW |