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

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

Issue 1729683002: Remove old-style constraints from Chrome internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Complete the interface change Created 4 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 "content/renderer/media/peer_connection_tracker.h" 5 #include "content/renderer/media/peer_connection_tracker.h"
6 6
7 #include "content/common/media/peer_connection_tracker_messages.h" 7 #include "content/common/media/peer_connection_tracker_messages.h"
8 #include "content/public/test/mock_render_thread.h" 8 #include "content/public/test/mock_render_thread.h"
9 #include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h" 9 #include "content/renderer/media/mock_web_rtc_peer_connection_handler_client.h"
10 #include "content/renderer/media/rtc_media_constraints.h"
11 #include "content/renderer/media/rtc_peer_connection_handler.h" 10 #include "content/renderer/media/rtc_peer_connection_handler.h"
12 #include "ipc/ipc_message_macros.h" 11 #include "ipc/ipc_message_macros.h"
13 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
14 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
15 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" 14 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
16 #include "third_party/WebKit/public/platform/WebRTCOfferOptions.h" 15 #include "third_party/WebKit/public/platform/WebRTCOfferOptions.h"
17 16
18 using ::testing::_; 17 using ::testing::_;
19 18
20 namespace content { 19 namespace content {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 OnUpdatePeerConnection( 74 OnUpdatePeerConnection(
76 _, "createOffer", 75 _, "createOffer",
77 "constraints: {offerToReceiveVideo: 0, offerToReceiveAudio: 0, " 76 "constraints: {offerToReceiveVideo: 0, offerToReceiveAudio: 0, "
78 "voiceActivityDetection: false, iceRestart: false}")); 77 "voiceActivityDetection: false, iceRestart: false}"));
79 tracker.TrackCreateOffer(&pc_handler, options); 78 tracker.TrackCreateOffer(&pc_handler, options);
80 } 79 }
81 80
82 // TODO(hta): Write tests for the other tracking functions. 81 // TODO(hta): Write tests for the other tracking functions.
83 82
84 } // namespace 83 } // namespace
OLDNEW
« no previous file with comments | « content/renderer/media/peer_connection_tracker.cc ('k') | content/renderer/media/rtc_media_constraints.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698