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

Side by Side Diff: trunk/src/content/browser/media/media_browsertest.h

Issue 22648006: Revert 216780 "Clean up compositor initialization/destruction." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 4 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 content { 7 namespace content {
8 8
9 // Class used to automate running media related browser tests. The functions 9 // Class used to automate running media related browser tests. The functions
10 // assume that media files are located under files/media/ folder known to 10 // assume that media files are located under files/media/ folder known to
11 // the test http server. 11 // the test http server.
12 class MediaBrowserTest : public ContentBrowserTest { 12 class MediaBrowserTest : public ContentBrowserTest {
13 public: 13 public:
14 static const char kEnded[]; 14 static const char kEnded[];
15 static const char kError[]; 15 static const char kError[];
16 static const char kFailed[]; 16 static const char kFailed[];
17 17
18 typedef std::pair<const char*, const char*> StringPair; 18 typedef std::pair<const char*, const char*> StringPair;
19 19
20 virtual void SetUp() OVERRIDE;
21
22 // Runs a html page with a list of URL query parameters. 20 // Runs a html page with a list of URL query parameters.
23 // If http is true, the test starts a local http test server to load the test 21 // If http is true, the test starts a local http test server to load the test
24 // page, otherwise a local file URL is loaded inside the content shell. 22 // page, otherwise a local file URL is loaded inside the content shell.
25 // It uses RunTest() to check for expected test output. 23 // It uses RunTest() to check for expected test output.
26 void RunMediaTestPage(const char* html_page, 24 void RunMediaTestPage(const char* html_page,
27 std::vector<StringPair>* query_params, 25 std::vector<StringPair>* query_params,
28 const char* expected, bool http); 26 const char* expected, bool http);
29 27
30 // Opens a URL and waits for the document title to match either one of the 28 // Opens a URL and waits for the document title to match either one of the
31 // default strings or the expected string. 29 // default strings or the expected string.
32 void RunTest(const GURL& gurl, const char* expected); 30 void RunTest(const GURL& gurl, const char* expected);
33 }; 31 };
34 32
35 } // namespace content 33 } // namespace content
OLDNEW
« no previous file with comments | « trunk/src/content/browser/gpu/gpu_pixel_browsertest.cc ('k') | trunk/src/content/browser/media/media_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698