| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/html/HTMLMediaElement.h" | 5 #include "core/html/HTMLMediaElement.h" |
| 6 | 6 |
| 7 #include "core/frame/Settings.h" | 7 #include "core/frame/Settings.h" |
| 8 #include "core/html/HTMLAudioElement.h" | 8 #include "core/html/HTMLAudioElement.h" |
| 9 #include "core/html/HTMLVideoElement.h" | 9 #include "core/html/HTMLVideoElement.h" |
| 10 #include "core/page/NetworkStateNotifier.h" | |
| 11 #include "core/testing/DummyPageHolder.h" | 10 #include "core/testing/DummyPageHolder.h" |
| 11 #include "platform/network/NetworkStateNotifier.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 enum class TestParam { Audio, Video }; | 16 enum class TestParam { Audio, Video }; |
| 17 | 17 |
| 18 class HTMLMediaElementTest : public ::testing::TestWithParam<TestParam> { | 18 class HTMLMediaElementTest : public ::testing::TestWithParam<TestParam> { |
| 19 protected: | 19 protected: |
| 20 void SetUp() { | 20 void SetUp() { |
| 21 m_dummyPageHolder = DummyPageHolder::create(); | 21 m_dummyPageHolder = DummyPageHolder::create(); |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 setCurrentSrc(srcSchemeToURL(data.srcScheme)); | 132 setCurrentSrc(srcSchemeToURL(data.srcScheme)); |
| 133 media()->setPreload(data.preloadToSet); | 133 media()->setPreload(data.preloadToSet); |
| 134 | 134 |
| 135 EXPECT_EQ(data.preloadExpected, media()->preload()) | 135 EXPECT_EQ(data.preloadExpected, media()->preload()) |
| 136 << "preload type differs at index" << index; | 136 << "preload type differs at index" << index; |
| 137 ++index; | 137 ++index; |
| 138 } | 138 } |
| 139 } | 139 } |
| 140 | 140 |
| 141 } // namespace blink | 141 } // namespace blink |
| OLD | NEW |