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

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

Issue 2885313003: [scheduler] Fix --disable-background-timer-throttling flag. (Closed)
Patch Set: fix test crash Created 3 years, 7 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 "platform/scheduler/renderer/web_view_scheduler.h" 6 #include "platform/scheduler/renderer/web_view_scheduler.h"
7 #include "platform/testing/TestingPlatformSupport.h" 7 #include "platform/testing/TestingPlatformSupport.h"
8 #include "platform/wtf/PtrUtil.h" 8 #include "platform/wtf/PtrUtil.h"
9 #include "public/platform/WebRTCError.h" 9 #include "public/platform/WebRTCError.h"
10 #include "public/platform/WebRTCPeerConnectionHandler.h" 10 #include "public/platform/WebRTCPeerConnectionHandler.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 "</script>)"); 127 "</script>)");
128 128
129 EXPECT_TRUE(WebView().Scheduler()->HasActiveConnectionForTest()); 129 EXPECT_TRUE(WebView().Scheduler()->HasActiveConnectionForTest());
130 130
131 MainFrame().ExecuteScript(WebString("data_channel.close();")); 131 MainFrame().ExecuteScript(WebString("data_channel.close();"));
132 132
133 EXPECT_FALSE(WebView().Scheduler()->HasActiveConnectionForTest()); 133 EXPECT_FALSE(WebView().Scheduler()->HasActiveConnectionForTest());
134 } 134 }
135 135
136 } // namespace blink 136 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698