OLD | NEW |
---|---|
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 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_BROWSERTEST_H_ | 5 #ifndef CONTENT_BROWSER_MEDIA_MEDIA_BROWSERTEST_H_ |
6 #define CONTENT_BROWSER_MEDIA_MEDIA_BROWSERTEST_H_ | 6 #define CONTENT_BROWSER_MEDIA_MEDIA_BROWSERTEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
(...skipping 21 matching lines...) Expand all Loading... | |
32 // It uses RunTest() to check for expected test output. | 32 // It uses RunTest() to check for expected test output. |
33 void RunMediaTestPage(const std::string& html_page, | 33 void RunMediaTestPage(const std::string& html_page, |
34 const base::StringPairs& query_params, | 34 const base::StringPairs& query_params, |
35 const std::string& expected_title, | 35 const std::string& expected_title, |
36 bool http); | 36 bool http); |
37 | 37 |
38 // Opens a URL and waits for the document title to match any of the waited for | 38 // Opens a URL and waits for the document title to match any of the waited for |
39 // titles. Returns the matching title. | 39 // titles. Returns the matching title. |
40 std::string RunTest(const GURL& gurl, const std::string& expected_title); | 40 std::string RunTest(const GURL& gurl, const std::string& expected_title); |
41 | 41 |
42 // Encodes |original_message| to be used in a URI query parameter suitable for | |
43 // decoding and usage with DecodeURIComponent in test pages that verify error | |
44 // message contents. | |
45 std::string EncodeErrorMessage(const std::string& original_message); | |
mlamouri (slow - plz ping)
2017/04/18 12:37:59
It doesn't sound like you need this to be part of
wolenetz
2017/04/18 17:53:06
In this particular patch set, you're correct: this
| |
46 | |
42 // Adds titles that RunTest() should wait for. | 47 // Adds titles that RunTest() should wait for. |
43 virtual void AddTitlesToAwait(content::TitleWatcher* title_watcher); | 48 virtual void AddTitlesToAwait(content::TitleWatcher* title_watcher); |
44 }; | 49 }; |
45 | 50 |
46 } // namespace content | 51 } // namespace content |
47 | 52 |
48 #endif // CONTENT_BROWSER_MEDIA_MEDIA_BROWSERTEST_H_ | 53 #endif // CONTENT_BROWSER_MEDIA_MEDIA_BROWSERTEST_H_ |
OLD | NEW |