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

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

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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/browser/media/media_browsertest.h" 5 #include "content/browser/media/media_browsertest.h"
6 6
7 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/public/browser/web_contents.h" 9 #include "content/public/browser/web_contents.h"
10 #include "content/public/common/url_constants.h" 10 #include "content/public/common/url_constants.h"
11 #include "content/public/test/browser_test_utils.h" 11 #include "content/public/test/browser_test_utils.h"
12 #include "content/shell/shell.h" 12 #include "content/shell/shell.h"
13 #include "content/test/content_browser_test_utils.h" 13 #include "content/test/content_browser_test_utils.h"
14 14
15 // TODO(wolenetz): Fix Media.YUV* tests on MSVS 2012 x64. crbug.com/180074 15 // TODO(wolenetz): Fix Media.YUV* tests on MSVS 2012 x64. crbug.com/180074
16 #if defined(OS_WIN) && defined(ARCH_CPU_X86_64) && _MSC_VER == 1700 16 #if defined(OS_WIN) && defined(ARCH_CPU_X86_64) && _MSC_VER == 1700
17 #define MAYBE(x) DISABLED_##x 17 #define MAYBE(x) DISABLED_##x
18 #else 18 #else
19 #define MAYBE(x) x 19 #define MAYBE(x) x
20 #endif 20 #endif
21 21
22 namespace content { 22 namespace content {
23 23
24 // Common test results. 24 // Common test results.
25 const char MediaBrowserTest::kEnded[] = "ENDED"; 25 const char MediaBrowserTest::kEnded[] = "ENDED";
26 const char MediaBrowserTest::kError[] = "ERROR"; 26 const char MediaBrowserTest::kError[] = "ERROR";
27 const char MediaBrowserTest::kFailed[] = "FAILED"; 27 const char MediaBrowserTest::kFailed[] = "FAILED";
28 28
29 void MediaBrowserTest::SetUp() {
30 // TODO(danakj): The GPU Video Decoder needs real GL bindings.
31 // crbug.com/269087
32 UseRealGLBindings();
33
34 ContentBrowserTest::SetUp();
35 }
36
37 void MediaBrowserTest::RunMediaTestPage( 29 void MediaBrowserTest::RunMediaTestPage(
38 const char* html_page, std::vector<StringPair>* query_params, 30 const char* html_page, std::vector<StringPair>* query_params,
39 const char* expected, bool http) { 31 const char* expected, bool http) {
40 GURL gurl; 32 GURL gurl;
41 std::string query = ""; 33 std::string query = "";
42 if (query_params != NULL && !query_params->empty()) { 34 if (query_params != NULL && !query_params->empty()) {
43 std::vector<StringPair>::const_iterator itr = query_params->begin(); 35 std::vector<StringPair>::const_iterator itr = query_params->begin();
44 query = base::StringPrintf("%s=%s", itr->first, itr->second); 36 query = base::StringPrintf("%s=%s", itr->first, itr->second);
45 ++itr; 37 ++itr;
46 for (; itr != query_params->end(); ++itr) { 38 for (; itr != query_params->end(); ++itr) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 } 228 }
237 229
238 #if defined(OS_CHROMEOS) 230 #if defined(OS_CHROMEOS)
239 IN_PROC_BROWSER_TEST_F(MediaTest, Yuv420pMpeg4) { 231 IN_PROC_BROWSER_TEST_F(MediaTest, Yuv420pMpeg4) {
240 RunColorFormatTest("yuv420p.avi", "ENDED"); 232 RunColorFormatTest("yuv420p.avi", "ENDED");
241 } 233 }
242 #endif 234 #endif
243 #endif 235 #endif
244 236
245 } // namespace content 237 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698