| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |