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

Side by Side Diff: chrome/browser/media_uitest.cc

Issue 8427026: Add CrOS specific codecs and media files to ui_tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/test/data/media/bear.flac » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/file_path.h" 6 #include "base/file_path.h"
7 #include "base/stringprintf.h" 7 #include "base/stringprintf.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/test/test_timeouts.h" 9 #include "base/test/test_timeouts.h"
10 #include "base/threading/platform_thread.h" 10 #include "base/threading/platform_thread.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 }; 55 };
56 56
57 #if defined(OS_MACOSX) 57 #if defined(OS_MACOSX)
58 // http://crbug.com/88834 - VideoBearTheora, VideoBearWav and VideoBearWebm 58 // http://crbug.com/88834 - VideoBearTheora, VideoBearWav and VideoBearWebm
59 // are flaky on Mac. 59 // are flaky on Mac.
60 #define MAYBE_VideoBearTheora FLAKY_VideoBearTheora 60 #define MAYBE_VideoBearTheora FLAKY_VideoBearTheora
61 #define MAYBE_VideoBearWav FLAKY_VideoBearWav 61 #define MAYBE_VideoBearWav FLAKY_VideoBearWav
62 #define MAYBE_VideoBearWebm FLAKY_VideoBearWebm 62 #define MAYBE_VideoBearWebm FLAKY_VideoBearWebm
63 #else 63 #else
64 #define MAYBE_VideoBearTheora VideoBearTheora 64 #define MAYBE_VideoBearTheora VideoBearTheora
65 #define MAYBE_VideoBearWav VideoBearWav 65 #define MAYBE_VideoBearWavPcm VideoBearWavPcm
66 #define MAYBE_VideoBearWebm VideoBearWebm 66 #define MAYBE_VideoBearWebm VideoBearWebm
67 #endif 67 #endif
68 68
69 TEST_F(MediaTest, MAYBE_VideoBearTheora) { 69 TEST_F(MediaTest, MAYBE_VideoBearTheora) {
70 PlayVideo("bear.ogv"); 70 PlayVideo("bear.ogv");
71 } 71 }
72 72
73 TEST_F(MediaTest, VideoBearSilentTheora) { 73 TEST_F(MediaTest, VideoBearSilentTheora) {
74 PlayVideo("bear_silent.ogv"); 74 PlayVideo("bear_silent.ogv");
75 } 75 }
76 76
77 TEST_F(MediaTest, MAYBE_VideoBearWebm) { 77 TEST_F(MediaTest, MAYBE_VideoBearWebm) {
78 PlayVideo("bear.webm"); 78 PlayVideo("bear.webm");
79 } 79 }
80 80
81 TEST_F(MediaTest, VideoBearSilentWebm) { 81 TEST_F(MediaTest, VideoBearSilentWebm) {
82 PlayVideo("bear_silent.webm"); 82 PlayVideo("bear_silent.webm");
83 } 83 }
84 84
85 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS) 85 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS)
86 TEST_F(MediaTest, VideoBearMp4) { 86 TEST_F(MediaTest, VideoBearMp4) {
87 PlayVideo("bear.mp4"); 87 PlayVideo("bear.mp4");
88 } 88 }
89 89
90 TEST_F(MediaTest, VideoBearSilentMp4) { 90 TEST_F(MediaTest, VideoBearSilentMp4) {
91 PlayVideo("bear_silent.mp4"); 91 PlayVideo("bear_silent.mp4");
92 } 92 }
93 #endif 93 #endif
94 94
95 TEST_F(MediaTest, MAYBE_VideoBearWav) { 95 #if defined(OS_CHROMEOS)
96 PlayVideo("bear.wav"); 96 #if defined(GOOGLE_CHROME_BUILD) || defined(USE_PROPRIETARY_CODECS)
97 TEST_F(MediaTest, VideoBearAviMp3Mpeg4) {
98 PlayVideo("bear_mpeg4_mp3.avi");
99 }
100
101 TEST_F(MediaTest, VideoBearAviMp3Divx) {
102 PlayVideo("bear_divx_mp3.avi");
103 }
104
105 TEST_F(MediaTest, VideoBear3gpAacH264) {
106 PlayVideo("bear_h264_aac.3gp");
107 }
108
109 TEST_F(MediaTest, VideoBear3gpAmrnbMpeg4) {
110 PlayVideo("bear_mpeg4_amrnb.3gp");
111 }
112
113 // TODO(ihf): Enable these audio codecs for CrOS.
114 // TEST_F(MediaTest, VideoBearWavAlaw) {
115 // PlayVideo("bear_alaw.wav");
116 // }
117 // TEST_F(MediaTest, VideoBearWavGsmms) {
118 // PlayVideo("bear_gsmms.wav");
119 // }
120
121 TEST_F(MediaTest, VideoBearWavMulaw) {
122 PlayVideo("bear_mulaw.wav");
123 }
124
125 TEST_F(MediaTest, VideoBearFlac) {
126 PlayVideo("bear.flac");
127 }
128 #endif
129 #endif
130
131 TEST_F(MediaTest, MAYBE_VideoBearWavPcm) {
132 PlayVideo("bear_pcm.wav");
97 } 133 }
98 134
99 #if defined(OS_MACOSX) 135 #if defined(OS_MACOSX)
100 // http://crbug.com/95274 - MediaUILayoutTest is flaky on Mac. 136 // http://crbug.com/95274 - MediaUILayoutTest is flaky on Mac.
101 #define MAYBE_MediaUILayoutTest FLAKY_MediaUILayoutTest 137 #define MAYBE_MediaUILayoutTest FLAKY_MediaUILayoutTest
102 #else 138 #else
103 #define MAYBE_MediaUILayoutTest MediaUILayoutTest 139 #define MAYBE_MediaUILayoutTest MediaUILayoutTest
104 #endif 140 #endif
105 141
106 TEST_F(UILayoutTest, MAYBE_MediaUILayoutTest) { 142 TEST_F(UILayoutTest, MAYBE_MediaUILayoutTest) {
(...skipping 19 matching lines...) Expand all
126 InitializeForLayoutTest(test_dir, media_test_dir, kNoHttpPort); 162 InitializeForLayoutTest(test_dir, media_test_dir, kNoHttpPort);
127 163
128 // Copy resources first. 164 // Copy resources first.
129 for (size_t i = 0; i < arraysize(kResources); ++i) 165 for (size_t i = 0; i < arraysize(kResources); ++i)
130 AddResourceForLayoutTest( 166 AddResourceForLayoutTest(
131 test_dir, media_test_dir.AppendASCII(kResources[i])); 167 test_dir, media_test_dir.AppendASCII(kResources[i]));
132 168
133 for (size_t i = 0; i < arraysize(kMediaTests); ++i) 169 for (size_t i = 0; i < arraysize(kMediaTests); ++i)
134 RunLayoutTest(kMediaTests[i], kNoHttpPort); 170 RunLayoutTest(kMediaTests[i], kNoHttpPort);
135 } 171 }
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/media/bear.flac » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698