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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLMediaElementTest.cpp

Issue 2710023006: Move NetworkStateNotifier from core (and web) into platform/network (Closed)
Patch Set: rebase Created 3 years, 9 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
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLMediaElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLVideoElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698