OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 // This file contains mock implementations of observers used in PeerConnection. | 11 // This file contains mock implementations of observers used in PeerConnection. |
12 | 12 |
13 #ifndef WEBRTC_PC_TEST_MOCKPEERCONNECTIONOBSERVERS_H_ | 13 #ifndef WEBRTC_PC_TEST_MOCKPEERCONNECTIONOBSERVERS_H_ |
14 #define WEBRTC_PC_TEST_MOCKPEERCONNECTIONOBSERVERS_H_ | 14 #define WEBRTC_PC_TEST_MOCKPEERCONNECTIONOBSERVERS_H_ |
15 | 15 |
16 #include <memory> | 16 #include <memory> |
17 #include <string> | 17 #include <string> |
18 | 18 |
19 #include "webrtc/api/datachannelinterface.h" | 19 #include "webrtc/api/datachannelinterface.h" |
20 #include "webrtc/rtc_base/checks.h" | 20 #include "webrtc/base/checks.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 class MockCreateSessionDescriptionObserver | 24 class MockCreateSessionDescriptionObserver |
25 : public webrtc::CreateSessionDescriptionObserver { | 25 : public webrtc::CreateSessionDescriptionObserver { |
26 public: | 26 public: |
27 MockCreateSessionDescriptionObserver() | 27 MockCreateSessionDescriptionObserver() |
28 : called_(false), | 28 : called_(false), |
29 result_(false) {} | 29 result_(false) {} |
30 virtual ~MockCreateSessionDescriptionObserver() {} | 30 virtual ~MockCreateSessionDescriptionObserver() {} |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 } | 240 } |
241 | 241 |
242 private: | 242 private: |
243 bool called_ = false; | 243 bool called_ = false; |
244 rtc::scoped_refptr<const RTCStatsReport> report_; | 244 rtc::scoped_refptr<const RTCStatsReport> report_; |
245 }; | 245 }; |
246 | 246 |
247 } // namespace webrtc | 247 } // namespace webrtc |
248 | 248 |
249 #endif // WEBRTC_PC_TEST_MOCKPEERCONNECTIONOBSERVERS_H_ | 249 #endif // WEBRTC_PC_TEST_MOCKPEERCONNECTIONOBSERVERS_H_ |
OLD | NEW |