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

Side by Side Diff: content/renderer/media/rtc_peer_connection_handler_unittest.cc

Issue 15822010: Update refernces to Blink's Platform API (content) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
11 #include "content/renderer/media/media_stream_extra_data.h" 11 #include "content/renderer/media/media_stream_extra_data.h"
12 #include "content/renderer/media/mock_media_stream_dependency_factory.h" 12 #include "content/renderer/media/mock_media_stream_dependency_factory.h"
13 #include "content/renderer/media/mock_peer_connection_impl.h" 13 #include "content/renderer/media/mock_peer_connection_impl.h"
14 #include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h" 14 #include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h"
15 #include "content/renderer/media/peer_connection_tracker.h" 15 #include "content/renderer/media/peer_connection_tracker.h"
16 #include "content/renderer/media/rtc_media_constraints.h" 16 #include "content/renderer/media/rtc_media_constraints.h"
17 #include "content/renderer/media/rtc_peer_connection_handler.h" 17 #include "content/renderer/media/rtc_peer_connection_handler.h"
18 #include "testing/gmock/include/gmock/gmock.h" 18 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaConstraints .h" 20 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
21 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStream.h" 21 #include "third_party/WebKit/public/platform/WebMediaStream.h"
22 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamSourc e.h" 22 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
23 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamTrack .h" 23 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h"
24 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCConfiguration .h" 24 #include "third_party/WebKit/public/platform/WebRTCConfiguration.h"
25 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCDTMFSenderHan dler.h" 25 #include "third_party/WebKit/public/platform/WebRTCDTMFSenderHandler.h"
26 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCDataChannelHa ndler.h" 26 #include "third_party/WebKit/public/platform/WebRTCDataChannelHandler.h"
27 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCICECandidate. h" 27 #include "third_party/WebKit/public/platform/WebRTCICECandidate.h"
28 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCPeerConnectio nHandlerClient.h" 28 #include "third_party/WebKit/public/platform/WebRTCPeerConnectionHandlerClient.h "
29 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCSessionDescri ption.h" 29 #include "third_party/WebKit/public/platform/WebRTCSessionDescription.h"
30 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCSessionDescri ptionRequest.h" 30 #include "third_party/WebKit/public/platform/WebRTCSessionDescriptionRequest.h"
31 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCStatsRequest. h" 31 #include "third_party/WebKit/public/platform/WebRTCStatsRequest.h"
32 #include "third_party/WebKit/Source/Platform/chromium/public/WebRTCVoidRequest.h " 32 #include "third_party/WebKit/public/platform/WebRTCVoidRequest.h"
33 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" 33 #include "third_party/WebKit/public/platform/WebURL.h"
34 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h " 34 #include "third_party/libjingle/source/talk/app/webrtc/peerconnectioninterface.h "
35 35
36 static const char kDummySdp[] = "dummy sdp"; 36 static const char kDummySdp[] = "dummy sdp";
37 static const char kDummySdpType[] = "dummy type"; 37 static const char kDummySdpType[] = "dummy type";
38 38
39 using WebKit::WebRTCPeerConnectionHandlerClient; 39 using WebKit::WebRTCPeerConnectionHandlerClient;
40 using testing::NiceMock; 40 using testing::NiceMock;
41 using testing::_; 41 using testing::_;
42 using testing::Ref; 42 using testing::Ref;
43 43
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
806 EXPECT_CALL(*mock_tracker_.get(), 806 EXPECT_CALL(*mock_tracker_.get(),
807 TrackCreateDTMFSender(pc_handler_.get(), 807 TrackCreateDTMFSender(pc_handler_.get(),
808 testing::Ref(tracks[0]))); 808 testing::Ref(tracks[0])));
809 809
810 scoped_ptr<WebKit::WebRTCDTMFSenderHandler> sender( 810 scoped_ptr<WebKit::WebRTCDTMFSenderHandler> sender(
811 pc_handler_->createDTMFSender(tracks[0])); 811 pc_handler_->createDTMFSender(tracks[0]));
812 EXPECT_TRUE(sender.get()); 812 EXPECT_TRUE(sender.get());
813 } 813 }
814 814
815 } // namespace content 815 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_peer_connection_handler.cc ('k') | content/renderer/media/stream_texture_factory_impl_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698