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

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

Issue 21052007: aura: Clean up compositor initialization/destruction. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanupcompositor: Fix dominance 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/test/browser_test_utils.h" 10 #include "content/public/test/browser_test_utils.h"
11 #include "content/shell/shell.h" 11 #include "content/shell/shell.h"
12 #include "content/test/content_browser_test_utils.h" 12 #include "content/test/content_browser_test_utils.h"
13 13
14 // TODO(wolenetz): Fix Media.YUV* tests on MSVS 2012 x64. crbug.com/180074 14 // TODO(wolenetz): Fix Media.YUV* tests on MSVS 2012 x64. crbug.com/180074
15 #if defined(OS_WIN) && defined(ARCH_CPU_X86_64) && _MSC_VER == 1700 15 #if defined(OS_WIN) && defined(ARCH_CPU_X86_64) && _MSC_VER == 1700
16 #define MAYBE(x) DISABLED_##x 16 #define MAYBE(x) DISABLED_##x
17 #else 17 #else
18 #define MAYBE(x) x 18 #define MAYBE(x) x
19 #endif 19 #endif
20 20
21 namespace content { 21 namespace content {
22 22
23 // Common test results. 23 // Common test results.
24 const char MediaBrowserTest::kEnded[] = "ENDED"; 24 const char MediaBrowserTest::kEnded[] = "ENDED";
25 const char MediaBrowserTest::kError[] = "ERROR"; 25 const char MediaBrowserTest::kError[] = "ERROR";
26 const char MediaBrowserTest::kFailed[] = "FAILED"; 26 const char MediaBrowserTest::kFailed[] = "FAILED";
27 27
28 void MediaBrowserTest::SetUp() {
29 // The GPU Video Decoder needs real GL bindings.
30 UseRealGLBindings();
31
32 ContentBrowserTest::SetUp();
33 }
34
35
sky 2013/08/05 16:50:58 nit: only one newline.
danakj 2013/08/05 16:53:34 Done.
28 void MediaBrowserTest::RunMediaTestPage( 36 void MediaBrowserTest::RunMediaTestPage(
29 const char* html_page, std::vector<StringPair>* query_params, 37 const char* html_page, std::vector<StringPair>* query_params,
30 const char* expected, bool http) { 38 const char* expected, bool http) {
31 GURL gurl; 39 GURL gurl;
32 std::string query = ""; 40 std::string query = "";
33 if (query_params != NULL && !query_params->empty()) { 41 if (query_params != NULL && !query_params->empty()) {
34 std::vector<StringPair>::const_iterator itr = query_params->begin(); 42 std::vector<StringPair>::const_iterator itr = query_params->begin();
35 query = base::StringPrintf("%s=%s", itr->first, itr->second); 43 query = base::StringPrintf("%s=%s", itr->first, itr->second);
36 ++itr; 44 ++itr;
37 for (;itr != query_params->end(); ++itr) { 45 for (;itr != query_params->end(); ++itr) {
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 } 235 }
228 236
229 #if defined(OS_CHROMEOS) 237 #if defined(OS_CHROMEOS)
230 IN_PROC_BROWSER_TEST_F(MediaTest, Yuv420pMpeg4) { 238 IN_PROC_BROWSER_TEST_F(MediaTest, Yuv420pMpeg4) {
231 RunColorFormatTest("yuv420p.avi", "ENDED"); 239 RunColorFormatTest("yuv420p.avi", "ENDED");
232 } 240 }
233 #endif 241 #endif
234 #endif 242 #endif
235 243
236 } // namespace content 244 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698