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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_host_browsertest.cc

Issue 236073004: Remove kEnableBrowserPluginForAllViewTypes flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 7 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/memory/singleton.h" 6 #include "base/memory/singleton.h"
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/strings/string_split.h" 8 #include "base/strings/string_split.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 TestBrowserPluginHostFactory::GetInstance()); 238 TestBrowserPluginHostFactory::GetInstance());
239 ContentBrowserTest::SetUp(); 239 ContentBrowserTest::SetUp();
240 } 240 }
241 virtual void TearDown() OVERRIDE { 241 virtual void TearDown() OVERRIDE {
242 content::BrowserPluginEmbedder::set_factory_for_testing(NULL); 242 content::BrowserPluginEmbedder::set_factory_for_testing(NULL);
243 content::BrowserPluginGuest::set_factory_for_testing(NULL); 243 content::BrowserPluginGuest::set_factory_for_testing(NULL);
244 244
245 ContentBrowserTest::TearDown(); 245 ContentBrowserTest::TearDown();
246 } 246 }
247 247
248 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
249 // Enable browser plugin in content_shell for running test.
250 command_line->AppendSwitch(switches::kEnableBrowserPluginForAllViewTypes);
251 }
252
253 static void SimulateSpaceKeyPress(WebContents* web_contents) { 248 static void SimulateSpaceKeyPress(WebContents* web_contents) {
254 SimulateKeyPress(web_contents, 249 SimulateKeyPress(web_contents,
255 ui::VKEY_SPACE, 250 ui::VKEY_SPACE,
256 false, // control. 251 false, // control.
257 false, // shift. 252 false, // shift.
258 false, // alt. 253 false, // alt.
259 false); // command. 254 false); // command.
260 } 255 }
261 256
262 static void SimulateTabKeyPress(WebContents* web_contents) { 257 static void SimulateTabKeyPress(WebContents* web_contents) {
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1061 scoped_ptr<base::Value> value = 1056 scoped_ptr<base::Value> value =
1062 content::ExecuteScriptAndGetValue( 1057 content::ExecuteScriptAndGetValue(
1063 guest_rfh, "document.getElementById('input1').value"); 1058 guest_rfh, "document.getElementById('input1').value");
1064 std::string actual_value; 1059 std::string actual_value;
1065 ASSERT_TRUE(value->GetAsString(&actual_value)); 1060 ASSERT_TRUE(value->GetAsString(&actual_value));
1066 EXPECT_EQ(base::UTF16ToUTF8(expected_value), actual_value); 1061 EXPECT_EQ(base::UTF16ToUTF8(expected_value), actual_value);
1067 } 1062 }
1068 } 1063 }
1069 1064
1070 } // namespace content 1065 } // namespace content
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698