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

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: Created 6 years, 8 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 794 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 scoped_ptr<base::Value> value = 1052 scoped_ptr<base::Value> value =
1058 content::ExecuteScriptAndGetValue( 1053 content::ExecuteScriptAndGetValue(
1059 guest_rfh, "document.getElementById('input1').value"); 1054 guest_rfh, "document.getElementById('input1').value");
1060 std::string actual_value; 1055 std::string actual_value;
1061 ASSERT_TRUE(value->GetAsString(&actual_value)); 1056 ASSERT_TRUE(value->GetAsString(&actual_value));
1062 EXPECT_EQ(base::UTF16ToUTF8(expected_value), actual_value); 1057 EXPECT_EQ(base::UTF16ToUTF8(expected_value), actual_value);
1063 } 1058 }
1064 } 1059 }
1065 1060
1066 } // namespace content 1061 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698