Changes: 1. Added MockTransport. 2. Added VoiceEngineFixture class to be used in VoE unit tests. This class is in no way final as it is - it will grow as we add more unit tests and our understanding of the Voice Engine grows. 3. Modified VoEBase unit test to use VoiceEngineFixture. 4. Added VoENetwork unit test. R=henrika@webrtc.org, kwiberg@webrtc.org Review URL: https://webrtc-codereview.appspot.com/49759004 Cr-Commit-Position: refs/heads/master@{#9118}
28 lines
891 B
C++
28 lines
891 B
C++
/*
|
|
* Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by a BSD-style license
|
|
* that can be found in the LICENSE file in the root of the source
|
|
* tree. An additional intellectual property rights grant can be found
|
|
* in the file PATENTS. All contributing project authors may
|
|
* be found in the AUTHORS file in the root of the source tree.
|
|
*/
|
|
|
|
#ifndef WEBRTC_VOICE_ENGINE_MOCK_TRANSPORT_H_
|
|
#define WEBRTC_VOICE_ENGINE_MOCK_TRANSPORT_H_
|
|
|
|
#include "testing/gmock/include/gmock/gmock.h"
|
|
#include "webrtc/common_types.h"
|
|
|
|
namespace webrtc {
|
|
|
|
class MockTransport : public Transport {
|
|
public:
|
|
MOCK_METHOD3(SendPacket, int(int channel, const void* data, size_t len));
|
|
MOCK_METHOD3(SendRTCPPacket, int(int channel, const void* data, size_t len));
|
|
};
|
|
|
|
} // namespace webrtc
|
|
|
|
#endif // WEBRTC_VOICE_ENGINE_MOCK_TRANSPORT_H_
|