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

Side by Side Diff: content/test/webrtc_content_browsertest_base.h

Issue 196413016: Move CommandLine to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/test/content_browser_test.h" 5 #include "content/test/content_browser_test.h"
6 6
7 namespace base {
7 class CommandLine; 8 class CommandLine;
9 }
8 10
9 namespace content { 11 namespace content {
10 12
11 // Contains stuff WebRTC browsertests have in common. 13 // Contains stuff WebRTC browsertests have in common.
12 class WebRtcContentBrowserTest: public ContentBrowserTest { 14 class WebRtcContentBrowserTest: public ContentBrowserTest {
13 public: 15 public:
14 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE; 16 virtual void SetUpCommandLine(base::CommandLine* command_line) OVERRIDE;
15 virtual void SetUp() OVERRIDE; 17 virtual void SetUp() OVERRIDE;
16 18
17 protected: 19 protected:
18 // Executes |javascript|. The script is required to use 20 // Executes |javascript|. The script is required to use
19 // window.domAutomationController.send to send a string value back to here. 21 // window.domAutomationController.send to send a string value back to here.
20 std::string ExecuteJavascriptAndReturnResult( 22 std::string ExecuteJavascriptAndReturnResult(
21 const std::string& javascript); 23 const std::string& javascript);
22 24
23 // Waits for the javascript to return OK via the automation controller. 25 // Waits for the javascript to return OK via the automation controller.
24 // If the javascript returns != OK or times out, we fail the test. 26 // If the javascript returns != OK or times out, we fail the test.
25 void ExecuteJavascriptAndWaitForOk(const std::string& javascript); 27 void ExecuteJavascriptAndWaitForOk(const std::string& javascript);
26 28
27 // Generates javascript code for a getUserMedia call. 29 // Generates javascript code for a getUserMedia call.
28 std::string GenerateGetUserMediaCall(const char* function_name, 30 std::string GenerateGetUserMediaCall(const char* function_name,
29 int min_width, 31 int min_width,
30 int max_width, 32 int max_width,
31 int min_height, 33 int min_height,
32 int max_height, 34 int max_height,
33 int min_frame_rate, 35 int min_frame_rate,
34 int max_frame_rate) const; 36 int max_frame_rate) const;
35 }; 37 };
36 38
37 } // namespace content 39 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/browser/shell_content_browser_client.h ('k') | extensions/browser/extensions_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698