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

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

Issue 2706563003: Create the API that returns the RTCConfiguration of the PeerConnection.
Patch Set: rebaselining 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 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 "platform/testing/TestingPlatformSupport.h" 5 #include "platform/testing/TestingPlatformSupport.h"
6 #include "public/platform/WebRTCConfiguration.h"
6 #include "public/platform/WebRTCError.h" 7 #include "public/platform/WebRTCError.h"
7 #include "public/platform/WebRTCPeerConnectionHandler.h" 8 #include "public/platform/WebRTCPeerConnectionHandler.h"
8 #include "public/platform/WebRTCSessionDescription.h" 9 #include "public/platform/WebRTCSessionDescription.h"
9 #include "public/web/WebScriptSource.h" 10 #include "public/web/WebScriptSource.h"
10 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
11 #include "third_party/WebKit/public/platform/WebViewScheduler.h" 12 #include "third_party/WebKit/public/platform/WebViewScheduler.h"
12 #include "web/WebLocalFrameImpl.h" 13 #include "web/WebLocalFrameImpl.h"
13 #include "web/WebViewImpl.h" 14 #include "web/WebViewImpl.h"
14 #include "web/tests/sim/SimRequest.h" 15 #include "web/tests/sim/SimRequest.h"
15 #include "web/tests/sim/SimTest.h" 16 #include "web/tests/sim/SimTest.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 const WebRTCSessionDescription&) override {} 66 const WebRTCSessionDescription&) override {}
66 WebRTCSessionDescription localDescription() override { 67 WebRTCSessionDescription localDescription() override {
67 return WebRTCSessionDescription(); 68 return WebRTCSessionDescription();
68 } 69 }
69 WebRTCSessionDescription remoteDescription() override { 70 WebRTCSessionDescription remoteDescription() override {
70 return WebRTCSessionDescription(); 71 return WebRTCSessionDescription();
71 } 72 }
72 WebRTCErrorType setConfiguration(const WebRTCConfiguration&) override { 73 WebRTCErrorType setConfiguration(const WebRTCConfiguration&) override {
73 return WebRTCErrorType::kNone; 74 return WebRTCErrorType::kNone;
74 } 75 }
76 blink::WebRTCConfiguration getConfiguration() override {
77 return blink::WebRTCConfiguration();
78 }
75 bool addStream(const WebMediaStream&, const WebMediaConstraints&) override { 79 bool addStream(const WebMediaStream&, const WebMediaConstraints&) override {
76 return true; 80 return true;
77 } 81 }
78 void removeStream(const WebMediaStream&) override {} 82 void removeStream(const WebMediaStream&) override {}
79 void getStats(const WebRTCStatsRequest&) override {} 83 void getStats(const WebRTCStatsRequest&) override {}
80 void getStats(std::unique_ptr<WebRTCStatsReportCallback>) override {} 84 void getStats(std::unique_ptr<WebRTCStatsReportCallback>) override {}
81 WebRTCDataChannelHandler* createDataChannel( 85 WebRTCDataChannelHandler* createDataChannel(
82 const WebString& label, 86 const WebString& label,
83 const WebRTCDataChannelInit&) override { 87 const WebRTCDataChannelInit&) override {
84 return nullptr; 88 return nullptr;
(...skipping 30 matching lines...) Expand all
115 "</script>)"); 119 "</script>)");
116 120
117 EXPECT_TRUE(webView().scheduler()->hasActiveConnectionForTest()); 121 EXPECT_TRUE(webView().scheduler()->hasActiveConnectionForTest());
118 122
119 mainFrame().executeScript(WebString("data_channel.close();")); 123 mainFrame().executeScript(WebString("data_channel.close();"));
120 124
121 EXPECT_FALSE(webView().scheduler()->hasActiveConnectionForTest()); 125 EXPECT_FALSE(webView().scheduler()->hasActiveConnectionForTest());
122 } 126 }
123 127
124 } // namespace blink 128 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698