| OLD | NEW |
| 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 "content/test/layout_browsertest.h" | 5 #include "content/test/layout_browsertest.h" |
| 6 | 6 |
| 7 class AudioLayoutTest : public InProcessBrowserLayoutTest { | 7 class AudioLayoutTest : public InProcessBrowserLayoutTest { |
| 8 protected: | 8 protected: |
| 9 AudioLayoutTest() : InProcessBrowserLayoutTest( | 9 AudioLayoutTest() : InProcessBrowserLayoutTest( |
| 10 FilePath(), FilePath().AppendASCII("media")) { | 10 FilePath(), FilePath().AppendASCII("media")) { |
| 11 } | 11 } |
| 12 virtual ~AudioLayoutTest() {} | |
| 13 | |
| 14 virtual void SetUpInProcessBrowserTestFixture() OVERRIDE { | |
| 15 InProcessBrowserLayoutTest::SetUpInProcessBrowserTestFixture(); | |
| 16 AddResourceForLayoutTest(FilePath().AppendASCII("media"), | |
| 17 FilePath().AppendASCII("content")); | |
| 18 AddResourceForLayoutTest(FilePath().AppendASCII("media"), | |
| 19 FilePath().AppendASCII("media-file.js")); | |
| 20 AddResourceForLayoutTest(FilePath().AppendASCII("media"), | |
| 21 FilePath().AppendASCII("video-test.js")); | |
| 22 } | |
| 23 }; | 12 }; |
| 24 | 13 |
| 25 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructorPreload) { | 14 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructorPreload) { |
| 26 RunLayoutTest("audio-constructor-preload.html"); | 15 RunLayoutTest("audio-constructor-preload.html"); |
| 27 } | 16 } |
| 28 | 17 |
| 29 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructor) { | 18 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, AudioConstructor) { |
| 30 RunLayoutTest("audio-constructor.html"); | 19 RunLayoutTest("audio-constructor.html"); |
| 31 } | 20 } |
| 32 | 21 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 63 RunLayoutTest("audio-play-event.html"); | 52 RunLayoutTest("audio-play-event.html"); |
| 64 } | 53 } |
| 65 | 54 |
| 66 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaCanPlayWavAudio) { | 55 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaCanPlayWavAudio) { |
| 67 RunLayoutTest("media-can-play-wav-audio.html"); | 56 RunLayoutTest("media-can-play-wav-audio.html"); |
| 68 } | 57 } |
| 69 | 58 |
| 70 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaDocumentAudioSize) { | 59 IN_PROC_BROWSER_TEST_F(AudioLayoutTest, MediaDocumentAudioSize) { |
| 71 RunLayoutTest("media-document-audio-size.html"); | 60 RunLayoutTest("media-document-audio-size.html"); |
| 72 } | 61 } |
| OLD | NEW |