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

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

Issue 22293003: Clean up compositor initialization/destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanupcompositor: UseRealGLBindings in NetInternalsTest 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
29 void MediaBrowserTest::RunMediaTestPage( 37 void MediaBrowserTest::RunMediaTestPage(
30 const char* html_page, std::vector<StringPair>* query_params, 38 const char* html_page, std::vector<StringPair>* query_params,
31 const char* expected, bool http) { 39 const char* expected, bool http) {
32 GURL gurl; 40 GURL gurl;
33 std::string query = ""; 41 std::string query = "";
34 if (query_params != NULL && !query_params->empty()) { 42 if (query_params != NULL && !query_params->empty()) {
35 std::vector<StringPair>::const_iterator itr = query_params->begin(); 43 std::vector<StringPair>::const_iterator itr = query_params->begin();
36 query = base::StringPrintf("%s=%s", itr->first, itr->second); 44 query = base::StringPrintf("%s=%s", itr->first, itr->second);
37 ++itr; 45 ++itr;
38 for (; itr != query_params->end(); ++itr) { 46 for (; itr != query_params->end(); ++itr) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 } 236 }
229 237
230 #if defined(OS_CHROMEOS) 238 #if defined(OS_CHROMEOS)
231 IN_PROC_BROWSER_TEST_F(MediaTest, Yuv420pMpeg4) { 239 IN_PROC_BROWSER_TEST_F(MediaTest, Yuv420pMpeg4) {
232 RunColorFormatTest("yuv420p.avi", "ENDED"); 240 RunColorFormatTest("yuv420p.avi", "ENDED");
233 } 241 }
234 #endif 242 #endif
235 #endif 243 #endif
236 244
237 } // namespace content 245 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698