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

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

Issue 12223005: Disable some EncryptedMediaTests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment about MAYBE_ added Created 7 years, 10 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
« no previous file with comments | « no previous file | no next file » | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/command_line.h" 6 #include "base/command_line.h"
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 #endif 108 #endif
109 command_line->AppendSwitchNative(switches::kRegisterPepperPlugins, 109 command_line->AppendSwitchNative(switches::kRegisterPepperPlugins,
110 pepper_plugin); 110 pepper_plugin);
111 } 111 }
112 }; 112 };
113 113
114 INSTANTIATE_TEST_CASE_P(ClearKey, EncryptedMediaTest, 114 INSTANTIATE_TEST_CASE_P(ClearKey, EncryptedMediaTest,
115 ::testing::Values(kClearKeyKeySystem)); 115 ::testing::Values(kClearKeyKeySystem));
116 116
117 INSTANTIATE_TEST_CASE_P(ExternalClearKey, EncryptedMediaTest, 117 INSTANTIATE_TEST_CASE_P(ExternalClearKey, EncryptedMediaTest,
118 ::testing::Values(kExternalClearKeyKeySystem)); 118 ::testing::Values(kExternalClearKeyKeySystem));
shadi 2013/02/05 18:44:28 Is not easier to just disable adding this parametr
vabr (Chromium) 2013/02/05 18:52:14 Well, there was still FrameChangeVideo which did n
119 119
120 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, InvalidKeySystem) { 120 IN_PROC_BROWSER_TEST_F(EncryptedMediaTest, InvalidKeySystem) {
121 const string16 kExpected = ASCIIToUTF16( 121 const string16 kExpected = ASCIIToUTF16(
122 StringToUpperASCII(std::string("GenerateKeyRequestException"))); 122 StringToUpperASCII(std::string("GenerateKeyRequestException")));
123 ASSERT_NO_FATAL_FAILURE( 123 ASSERT_NO_FATAL_FAILURE(
124 TestSimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo, 124 TestSimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo,
125 "com.example.invalid", kExpected)); 125 "com.example.invalid", kExpected));
126 } 126 }
127 127
128 #if defined(OS_LINUX) && !defined(NDEBUG)
129 // http://crbug.com/174294; not using MAYBE_ because IN_PROC_BROWSER_TEST_P does
130 // not expand the test name macro correctly, TODO(vabr, bauerb)
Bernhard Bauer 2013/02/05 16:21:52 The correct format for TODOs is `TODO(ldap):` (Pi
131 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, DISABLED_BasicPlayback_AudioOnly) {
132 #else
128 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_AudioOnly) { 133 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_AudioOnly) {
134 #endif
129 const string16 kExpected = ASCIIToUTF16("ENDED"); 135 const string16 kExpected = ASCIIToUTF16("ENDED");
130 ASSERT_NO_FATAL_FAILURE( 136 ASSERT_NO_FATAL_FAILURE(
131 TestSimplePlayback("bear-a-enc_a.webm", kWebMAudioOnly, 137 TestSimplePlayback("bear-a-enc_a.webm", kWebMAudioOnly,
132 GetParam(), kExpected)); 138 GetParam(), kExpected));
133 } 139 }
134 140
141 #if defined(OS_LINUX) && !defined(NDEBUG)
142 // http://crbug.com/174294; not using MAYBE_ because IN_PROC_BROWSER_TEST_P does
143 // not expand the test name macro correctly, TODO(vabr, bauerb)
144 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest,
145 DISABLED_BasicPlayback_AudioClearVideo) {
146 #else
135 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_AudioClearVideo) { 147 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_AudioClearVideo) {
148 #endif
136 const string16 kExpected = ASCIIToUTF16("ENDED"); 149 const string16 kExpected = ASCIIToUTF16("ENDED");
137 ASSERT_NO_FATAL_FAILURE( 150 ASSERT_NO_FATAL_FAILURE(
138 TestSimplePlayback("bear-320x240-av-enc_a.webm", kWebMAudioVideo, 151 TestSimplePlayback("bear-320x240-av-enc_a.webm", kWebMAudioVideo,
139 GetParam(), kExpected)); 152 GetParam(), kExpected));
140 } 153 }
141 154
155 #if defined(OS_LINUX) && !defined(NDEBUG)
156 // http://crbug.com/174294; not using MAYBE_ because IN_PROC_BROWSER_TEST_P does
157 // not expand the test name macro correctly, TODO(vabr, bauerb)
158 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, DISABLED_BasicPlayback_VideoAudio) {
159 #else
142 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoAudio) { 160 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoAudio) {
161 #endif
143 const string16 kExpected = ASCIIToUTF16("ENDED"); 162 const string16 kExpected = ASCIIToUTF16("ENDED");
144 ASSERT_NO_FATAL_FAILURE( 163 ASSERT_NO_FATAL_FAILURE(
145 TestSimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo, 164 TestSimplePlayback("bear-320x240-av-enc_av.webm", kWebMAudioVideo,
146 GetParam(), kExpected)); 165 GetParam(), kExpected));
147 } 166 }
148 167
168 #if defined(OS_LINUX) && !defined(NDEBUG)
169 // http://crbug.com/174294; not using MAYBE_ because IN_PROC_BROWSER_TEST_P does
170 // not expand the test name macro correctly, TODO(vabr, bauerb)
171 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, DISABLED_BasicPlayback_VideoOnly) {
172 #else
149 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoOnly) { 173 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoOnly) {
174 #endif
150 const string16 kExpected = ASCIIToUTF16("ENDED"); 175 const string16 kExpected = ASCIIToUTF16("ENDED");
151 ASSERT_NO_FATAL_FAILURE( 176 ASSERT_NO_FATAL_FAILURE(
152 TestSimplePlayback("bear-320x240-v-enc_v.webm", kWebMVideoOnly, 177 TestSimplePlayback("bear-320x240-v-enc_v.webm", kWebMVideoOnly,
153 GetParam(), kExpected)); 178 GetParam(), kExpected));
154 } 179 }
155 180
181 #if defined(OS_LINUX) && !defined(NDEBUG)
182 // http://crbug.com/174294; not using MAYBE_ because IN_PROC_BROWSER_TEST_P does
183 // not expand the test name macro correctly, TODO(vabr, bauerb)
184 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest,
185 DISABLED_BasicPlayback_VideoClearAudio) {
186 #else
156 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoClearAudio) { 187 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, BasicPlayback_VideoClearAudio) {
188 #endif
157 const string16 kExpected = ASCIIToUTF16("ENDED"); 189 const string16 kExpected = ASCIIToUTF16("ENDED");
158 ASSERT_NO_FATAL_FAILURE( 190 ASSERT_NO_FATAL_FAILURE(
159 TestSimplePlayback("bear-320x240-av-enc_v.webm", kWebMAudioVideo, 191 TestSimplePlayback("bear-320x240-av-enc_v.webm", kWebMAudioVideo,
160 GetParam(), kExpected)); 192 GetParam(), kExpected));
161 } 193 }
162 194
163 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, FrameChangeVideo) { 195 IN_PROC_BROWSER_TEST_P(EncryptedMediaTest, FrameChangeVideo) {
164 const string16 kExpected = ASCIIToUTF16("ENDED"); 196 const string16 kExpected = ASCIIToUTF16("ENDED");
165 ASSERT_NO_FATAL_FAILURE(TestFrameSizeChange(GetParam(), kExpected)); 197 ASSERT_NO_FATAL_FAILURE(TestFrameSizeChange(GetParam(), kExpected));
166 } 198 }
167 199
168 } // namespace content 200 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698