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

Side by Side Diff: third_party/WebKit/Source/core/scheduler/ActiveConnectionThrottlingTest.cpp

Issue 2970833002: Be explicit about namespace testing to not mix it with blink::testing (Closed)
Patch Set: Created 3 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code if governed by a BSD-style license that can be 2 // Use of this source code if governed by a BSD-style license that can be
3 // found in LICENSE file. 3 // found in LICENSE file.
4 4
5 #include "core/exported/WebViewBase.h" 5 #include "core/exported/WebViewBase.h"
6 #include "core/frame/WebLocalFrameBase.h" 6 #include "core/frame/WebLocalFrameBase.h"
7 #include "core/testing/sim/SimRequest.h" 7 #include "core/testing/sim/SimRequest.h"
8 #include "core/testing/sim/SimTest.h" 8 #include "core/testing/sim/SimTest.h"
9 #include "platform/scheduler/renderer/web_view_scheduler.h" 9 #include "platform/scheduler/renderer/web_view_scheduler.h"
10 #include "platform/testing/TestingPlatformSupport.h" 10 #include "platform/testing/TestingPlatformSupport.h"
11 #include "platform/testing/TestingPlatformSupportWithWebRTC.h" 11 #include "platform/testing/TestingPlatformSupportWithWebRTC.h"
12 #include "platform/wtf/PtrUtil.h" 12 #include "platform/wtf/PtrUtil.h"
13 #include "public/web/WebScriptSource.h" 13 #include "public/web/WebScriptSource.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 using testing::_; 16 using ::testing::_;
17 17
18 namespace blink { 18 namespace blink {
19 19
20 class ActiveConnectionThrottlingTest : public SimTest {}; 20 class ActiveConnectionThrottlingTest : public SimTest {};
21 21
22 TEST_F(ActiveConnectionThrottlingTest, WebSocketStopsThrottling) { 22 TEST_F(ActiveConnectionThrottlingTest, WebSocketStopsThrottling) {
23 SimRequest main_resource("https://example.com/", "text/html"); 23 SimRequest main_resource("https://example.com/", "text/html");
24 24
25 LoadURL("https://example.com/"); 25 LoadURL("https://example.com/");
26 26
(...skipping 26 matching lines...) Expand all
53 "</script>)"); 53 "</script>)");
54 54
55 EXPECT_TRUE(WebView().Scheduler()->HasActiveConnectionForTest()); 55 EXPECT_TRUE(WebView().Scheduler()->HasActiveConnectionForTest());
56 56
57 MainFrame().ExecuteScript(WebString("data_channel.close();")); 57 MainFrame().ExecuteScript(WebString("data_channel.close();"));
58 58
59 EXPECT_FALSE(WebView().Scheduler()->HasActiveConnectionForTest()); 59 EXPECT_FALSE(WebView().Scheduler()->HasActiveConnectionForTest());
60 } 60 }
61 61
62 } // namespace blink 62 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698