| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |