| 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/file_util.h" | 5 #include "base/file_util.h" |
| 6 #include "base/memory/ref_counted.h" | 6 #include "base/memory/ref_counted.h" |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/extensions/autoupdate_interceptor.h" | 8 #include "chrome/browser/extensions/autoupdate_interceptor.h" |
| 9 #include "chrome/browser/extensions/extension_apitest.h" | 9 #include "chrome/browser/extensions/extension_apitest.h" |
| 10 #include "chrome/browser/extensions/extension_browsertest.h" | 10 #include "chrome/browser/extensions/extension_browsertest.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // pages. See http://crbug.com/64512. | 121 // pages. See http://crbug.com/64512. |
| 122 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, WebKitPrefsBackgroundPage) { | 122 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, WebKitPrefsBackgroundPage) { |
| 123 ASSERT_TRUE(LoadExtension( | 123 ASSERT_TRUE(LoadExtension( |
| 124 test_data_dir_.AppendASCII("good").AppendASCII("Extensions") | 124 test_data_dir_.AppendASCII("good").AppendASCII("Extensions") |
| 125 .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj") | 125 .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj") |
| 126 .AppendASCII("1.0.0.0"))); | 126 .AppendASCII("1.0.0.0"))); |
| 127 | 127 |
| 128 ExtensionProcessManager* manager = | 128 ExtensionProcessManager* manager = |
| 129 browser()->profile()->GetExtensionProcessManager(); | 129 browser()->profile()->GetExtensionProcessManager(); |
| 130 ExtensionHost* host = FindHostWithPath(manager, "/backgroundpage.html", 1); | 130 ExtensionHost* host = FindHostWithPath(manager, "/backgroundpage.html", 1); |
| 131 WebPreferences prefs = | 131 webkit_glue::WebPreferences prefs = |
| 132 host->render_view_host()->GetDelegate()->GetWebkitPrefs(); | 132 host->render_view_host()->GetDelegate()->GetWebkitPrefs(); |
| 133 ASSERT_TRUE(prefs.experimental_webgl_enabled); | 133 ASSERT_TRUE(prefs.experimental_webgl_enabled); |
| 134 ASSERT_TRUE(prefs.accelerated_compositing_enabled); | 134 ASSERT_TRUE(prefs.accelerated_compositing_enabled); |
| 135 ASSERT_TRUE(prefs.accelerated_2d_canvas_enabled); | 135 ASSERT_TRUE(prefs.accelerated_2d_canvas_enabled); |
| 136 } | 136 } |
| 137 | 137 |
| 138 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, PageActionCrash25562) { | 138 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, PageActionCrash25562) { |
| 139 ASSERT_TRUE(test_server()->Start()); | 139 ASSERT_TRUE(test_server()->Start()); |
| 140 | 140 |
| 141 CommandLine::ForCurrentProcess()->AppendSwitch( | 141 CommandLine::ForCurrentProcess()->AppendSwitch( |
| (...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 926 | 926 |
| 927 EXPECT_EQ(extension->GetResourceURL("options.html"), | 927 EXPECT_EQ(extension->GetResourceURL("options.html"), |
| 928 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); | 928 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); |
| 929 } | 929 } |
| 930 | 930 |
| 931 //============================================================================== | 931 //============================================================================== |
| 932 // STOP! Please do not add any more random-ass tests here. Create new files for | 932 // STOP! Please do not add any more random-ass tests here. Create new files for |
| 933 // your tests grouped by functionality. Also, you should strongly consider using | 933 // your tests grouped by functionality. Also, you should strongly consider using |
| 934 // ExtensionAPITest if possible. | 934 // ExtensionAPITest if possible. |
| 935 //============================================================================== | 935 //============================================================================== |
| OLD | NEW |