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

Side by Side Diff: media/base/demuxer_perftest.cc

Issue 476543004: Implement unit test specific test launcher timeout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: after disabling Created 6 years, 3 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 | « base/test/test_timeouts.cc ('k') | 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "media/base/media.h" 10 #include "media/base/media.h"
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 } 200 }
201 201
202 perf_test::PrintResult("demuxer_bench", 202 perf_test::PrintResult("demuxer_bench",
203 "", 203 "",
204 filename, 204 filename,
205 kBenchmarkIterations / total_time, 205 kBenchmarkIterations / total_time,
206 "runs/s", 206 "runs/s",
207 true); 207 true);
208 } 208 }
209 209
210 #if defined(OS_WIN) 210 class DemuxerPerfTest : public testing::TestWithParam<const char*> {
211 // http://crbug.com/399002 211 };
212 #define MAYBE_Demuxer DISABLED_Demuxer 212
213 #else 213 const char* kDemuxerBenchmarks[] = {
214 #define MAYBE_Demuxer Demuxer 214 "bear.ogv",
215 #endif 215 "bear-640x360.webm",
216 TEST(DemuxerPerfTest, MAYBE_Demuxer) { 216 "sfx_s16le.wav",
217 RunDemuxerBenchmark("bear.ogv");
218 RunDemuxerBenchmark("bear-640x360.webm");
219 RunDemuxerBenchmark("sfx_s16le.wav");
220 #if defined(USE_PROPRIETARY_CODECS) 217 #if defined(USE_PROPRIETARY_CODECS)
221 RunDemuxerBenchmark("bear-1280x720.mp4"); 218 "bear-1280x720.mp4",
222 RunDemuxerBenchmark("sfx.mp3"); 219 "sfx.mp3",
223 #endif 220 #endif
224 #if defined(OS_CHROMEOS) 221 #if defined(OS_CHROMEOS)
225 RunDemuxerBenchmark("bear.flac"); 222 "bear.flac",
226 #endif 223 #endif
227 #if defined(USE_PROPRIETARY_CODECS) && defined(OS_CHROMEOS) 224 #if defined(USE_PROPRIETARY_CODECS) && defined(OS_CHROMEOS)
228 RunDemuxerBenchmark("bear.avi"); 225 "bear.avi",
229 #endif 226 #endif
227 };
228
229 TEST_P(DemuxerPerfTest, Demuxer) {
230 RunDemuxerBenchmark(GetParam());
230 } 231 }
231 232
233 #if !defined(OS_WIN)
234 // http://crbug.com/399002
235 INSTANTIATE_TEST_CASE_P(, DemuxerPerfTest,
236 testing::ValuesIn(kDemuxerBenchmarks));
237 #endif // !defined(OS_WIN)
238
232 } // namespace media 239 } // namespace media
OLDNEW
« no previous file with comments | « base/test/test_timeouts.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698