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

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

Issue 2749703005: RTCRtpSender with track behind RuntimeEnabled flag (Closed)
Patch Set: external/wpt/webrtc/RTCPeerConnection-idl-expected.txt updated passing 2 more tests 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"
11 #include "public/platform/WebRTCRtpReceiver.h" 11 #include "public/platform/WebRTCRtpReceiver.h"
12 #include "public/platform/WebRTCRtpSender.h"
12 #include "public/platform/WebRTCSessionDescription.h" 13 #include "public/platform/WebRTCSessionDescription.h"
13 #include "public/web/WebScriptSource.h" 14 #include "public/web/WebScriptSource.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "web/WebLocalFrameImpl.h" 16 #include "web/WebLocalFrameImpl.h"
16 #include "web/tests/sim/SimRequest.h" 17 #include "web/tests/sim/SimRequest.h"
17 #include "web/tests/sim/SimTest.h" 18 #include "web/tests/sim/SimTest.h"
18 19
19 using testing::_; 20 using testing::_;
20 21
21 namespace blink { 22 namespace blink {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 74 }
74 WebRTCErrorType SetConfiguration(const WebRTCConfiguration&) override { 75 WebRTCErrorType SetConfiguration(const WebRTCConfiguration&) override {
75 return WebRTCErrorType::kNone; 76 return WebRTCErrorType::kNone;
76 } 77 }
77 bool AddStream(const WebMediaStream&, const WebMediaConstraints&) override { 78 bool AddStream(const WebMediaStream&, const WebMediaConstraints&) override {
78 return true; 79 return true;
79 } 80 }
80 void RemoveStream(const WebMediaStream&) override {} 81 void RemoveStream(const WebMediaStream&) override {}
81 void GetStats(const WebRTCStatsRequest&) override {} 82 void GetStats(const WebRTCStatsRequest&) override {}
82 void GetStats(std::unique_ptr<WebRTCStatsReportCallback>) override {} 83 void GetStats(std::unique_ptr<WebRTCStatsReportCallback>) override {}
84 blink::WebVector<std::unique_ptr<blink::WebRTCRtpSender>> GetSenders()
85 override {
86 return blink::WebVector<std::unique_ptr<blink::WebRTCRtpSender>>();
87 }
83 blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>> GetReceivers() 88 blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>> GetReceivers()
84 override { 89 override {
85 return blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>>(); 90 return blink::WebVector<std::unique_ptr<blink::WebRTCRtpReceiver>>();
86 } 91 }
87 WebRTCDataChannelHandler* CreateDataChannel( 92 WebRTCDataChannelHandler* CreateDataChannel(
88 const WebString& label, 93 const WebString& label,
89 const WebRTCDataChannelInit&) override { 94 const WebRTCDataChannelInit&) override {
90 return nullptr; 95 return nullptr;
91 } 96 }
92 WebRTCDTMFSenderHandler* CreateDTMFSender( 97 WebRTCDTMFSenderHandler* CreateDTMFSender(
(...skipping 29 matching lines...) Expand all
122 "</script>)"); 127 "</script>)");
123 128
124 EXPECT_TRUE(WebView().Scheduler()->HasActiveConnectionForTest()); 129 EXPECT_TRUE(WebView().Scheduler()->HasActiveConnectionForTest());
125 130
126 MainFrame().ExecuteScript(WebString("data_channel.close();")); 131 MainFrame().ExecuteScript(WebString("data_channel.close();"));
127 132
128 EXPECT_FALSE(WebView().Scheduler()->HasActiveConnectionForTest()); 133 EXPECT_FALSE(WebView().Scheduler()->HasActiveConnectionForTest());
129 } 134 }
130 135
131 } // namespace blink 136 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/exported/WebRTCRtpSender.cpp ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698