Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/extensions/extension_browsertests_misc.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // pages. See http://crbug.com/64512. 120 // pages. See http://crbug.com/64512.
121 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, WebKitPrefsBackgroundPage) { 121 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, WebKitPrefsBackgroundPage) {
122 ASSERT_TRUE(LoadExtension( 122 ASSERT_TRUE(LoadExtension(
123 test_data_dir_.AppendASCII("good").AppendASCII("Extensions") 123 test_data_dir_.AppendASCII("good").AppendASCII("Extensions")
124 .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj") 124 .AppendASCII("behllobkkfkfnphdnhnkndlbkcpglgmj")
125 .AppendASCII("1.0.0.0"))); 125 .AppendASCII("1.0.0.0")));
126 126
127 ExtensionProcessManager* manager = 127 ExtensionProcessManager* manager =
128 browser()->profile()->GetExtensionProcessManager(); 128 browser()->profile()->GetExtensionProcessManager();
129 ExtensionHost* host = FindHostWithPath(manager, "/backgroundpage.html", 1); 129 ExtensionHost* host = FindHostWithPath(manager, "/backgroundpage.html", 1);
130 WebPreferences prefs = host->render_view_host()->delegate()->GetWebkitPrefs(); 130 WebPreferences prefs =
131 host->render_view_host()->GetDelegate()->GetWebkitPrefs();
131 ASSERT_FALSE(prefs.experimental_webgl_enabled); 132 ASSERT_FALSE(prefs.experimental_webgl_enabled);
132 ASSERT_FALSE(prefs.accelerated_compositing_enabled); 133 ASSERT_FALSE(prefs.accelerated_compositing_enabled);
133 ASSERT_FALSE(prefs.accelerated_2d_canvas_enabled); 134 ASSERT_FALSE(prefs.accelerated_2d_canvas_enabled);
134 } 135 }
135 136
136 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, PageActionCrash25562) { 137 IN_PROC_BROWSER_TEST_F(ExtensionBrowserTest, PageActionCrash25562) {
137 ASSERT_TRUE(test_server()->Start()); 138 ASSERT_TRUE(test_server()->Start());
138 139
139 CommandLine::ForCurrentProcess()->AppendSwitch( 140 CommandLine::ForCurrentProcess()->AppendSwitch(
140 switches::kAllowLegacyExtensionManifests); 141 switches::kAllowLegacyExtensionManifests);
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
923 924
924 EXPECT_EQ(extension->GetResourceURL("options.html"), 925 EXPECT_EQ(extension->GetResourceURL("options.html"),
925 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL()); 926 tab_strip->GetTabContentsAt(1)->web_contents()->GetURL());
926 } 927 }
927 928
928 //============================================================================== 929 //==============================================================================
929 // STOP! Please do not add any more random-ass tests here. Create new files for 930 // STOP! Please do not add any more random-ass tests here. Create new files for
930 // your tests grouped by functionality. Also, you should strongly consider using 931 // your tests grouped by functionality. Also, you should strongly consider using
931 // ExtensionAPITest if possible. 932 // ExtensionAPITest if possible.
932 //============================================================================== 933 //==============================================================================
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698