| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef MEDIA_CAST_PACING_MOCK_PACED_PACKET_SENDER_H_ | 5 #ifndef MEDIA_CAST_PACING_MOCK_PACED_PACKET_SENDER_H_ |
| 6 #define MEDIA_CAST_PACING_MOCK_PACED_PACKET_SENDER_H_ | 6 #define MEDIA_CAST_PACING_MOCK_PACED_PACKET_SENDER_H_ |
| 7 | 7 |
| 8 #include "media/cast/pacing/paced_sender.h" | 8 #include "media/cast/pacing/paced_sender.h" |
| 9 #include "testing/gmock/include/gmock/gmock.h" | 9 #include "testing/gmock/include/gmock/gmock.h" |
| 10 | 10 |
| 11 namespace media { | 11 namespace media { |
| 12 namespace cast { | 12 namespace cast { |
| 13 | 13 |
| 14 class MockPacedPacketSender : public PacedPacketSender { | 14 class MockPacedPacketSender : public PacedPacketSender { |
| 15 public: | 15 public: |
| 16 MockPacedPacketSender(); |
| 17 virtual ~MockPacedPacketSender(); |
| 18 |
| 16 MOCK_METHOD2(SendPacket, | 19 MOCK_METHOD2(SendPacket, |
| 17 bool(const std::vector<uint8>& packet, int num_of_packets)); | 20 bool(const std::vector<uint8>& packet, int num_of_packets)); |
| 18 MOCK_METHOD2(ResendPacket, | 21 MOCK_METHOD2(ResendPacket, |
| 19 bool(const std::vector<uint8>& packet, int num_of_packets)); | 22 bool(const std::vector<uint8>& packet, int num_of_packets)); |
| 20 MOCK_METHOD1(SendRtcpPacket, bool(const std::vector<uint8>& packet)); | 23 MOCK_METHOD1(SendRtcpPacket, bool(const std::vector<uint8>& packet)); |
| 21 }; | 24 }; |
| 22 | 25 |
| 23 } // namespace cast | 26 } // namespace cast |
| 24 } // namespace media | 27 } // namespace media |
| 25 | 28 |
| 26 #endif // MEDIA_CAST_PACING_MOCK_PACED_PACKET_SENDER_H_ | 29 #endif // MEDIA_CAST_PACING_MOCK_PACED_PACKET_SENDER_H_ |
| OLD | NEW |