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

Side by Side Diff: webrtc/modules/pacing/mock/mock_paced_sender.h

Issue 2358993004: Enable the -Wundef warning for clang (Closed)
Patch Set: rebase Created 4 years, 2 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 /* 1 /*
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2013 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 #ifndef WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_ 11 #ifndef WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_
12 #define WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_ 12 #define WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_
13 13
14 #include <vector> 14 #include <vector>
15 15
16 #include "testing/gmock/include/gmock/gmock.h" 16 #include "webrtc/test/gmock.h"
17 17
18 #include "webrtc/modules/pacing/paced_sender.h" 18 #include "webrtc/modules/pacing/paced_sender.h"
19 #include "webrtc/system_wrappers/include/clock.h" 19 #include "webrtc/system_wrappers/include/clock.h"
20 20
21 namespace webrtc { 21 namespace webrtc {
22 22
23 class MockPacedSender : public PacedSender { 23 class MockPacedSender : public PacedSender {
24 public: 24 public:
25 MockPacedSender() : PacedSender(Clock::GetRealTimeClock(), nullptr) {} 25 MockPacedSender() : PacedSender(Clock::GetRealTimeClock(), nullptr) {}
26 MOCK_METHOD6(SendPacket, bool(Priority priority, 26 MOCK_METHOD6(SendPacket, bool(Priority priority,
27 uint32_t ssrc, 27 uint32_t ssrc,
28 uint16_t sequence_number, 28 uint16_t sequence_number,
29 int64_t capture_time_ms, 29 int64_t capture_time_ms,
30 size_t bytes, 30 size_t bytes,
31 bool retransmission)); 31 bool retransmission));
32 MOCK_METHOD2(CreateProbeCluster, void(int, int)); 32 MOCK_METHOD2(CreateProbeCluster, void(int, int));
33 MOCK_METHOD1(SetEstimatedBitrate, void(uint32_t)); 33 MOCK_METHOD1(SetEstimatedBitrate, void(uint32_t));
34 MOCK_CONST_METHOD0(QueueInMs, int64_t()); 34 MOCK_CONST_METHOD0(QueueInMs, int64_t());
35 MOCK_CONST_METHOD0(QueueInPackets, int()); 35 MOCK_CONST_METHOD0(QueueInPackets, int());
36 MOCK_CONST_METHOD0(ExpectedQueueTimeMs, int64_t()); 36 MOCK_CONST_METHOD0(ExpectedQueueTimeMs, int64_t());
37 }; 37 };
38 38
39 } // namespace webrtc 39 } // namespace webrtc
40 40
41 #endif // WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_ 41 #endif // WEBRTC_MODULES_PACING_MOCK_MOCK_PACED_SENDER_H_
OLDNEW
« no previous file with comments | « webrtc/modules/pacing/bitrate_prober_unittest.cc ('k') | webrtc/modules/pacing/paced_sender_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698