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

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

Issue 155375: Enable a ui test that plays video without audio stream... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/platform_thread.h" 7 #include "base/platform_thread.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "chrome/test/ui/ui_test.h" 9 #include "chrome/test/ui/ui_test.h"
10 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
(...skipping 29 matching lines...) Expand all
40 40
41 void PlayAudio(const char* url) { 41 void PlayAudio(const char* url) {
42 PlayMedia("audio", url); 42 PlayMedia("audio", url);
43 } 43 }
44 44
45 void PlayVideo(const char* url) { 45 void PlayVideo(const char* url) {
46 PlayMedia("video", url); 46 PlayMedia("video", url);
47 } 47 }
48 }; 48 };
49 49
50 // <video> and <audio> only works stably on Windows.
51 #if defined(OS_WIN)
52
53 // TODO(hclam): The following test is disabled because it contains audio and
54 // this test doesn't work with audio device.
50 TEST_F(MediaTest, DISABLED_VideoBearH264) { 55 TEST_F(MediaTest, DISABLED_VideoBearH264) {
51 PlayVideo("bear.mp4"); 56 PlayVideo("bear.mp4");
52 } 57 }
58
59 TEST_F(MediaTest, VideoBearSilentTheora) {
60 PlayVideo("bear_silent.ogv");
61 }
62
63 #endif
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