Tiny cleanups.
BUG=webrtc:4690 R=tommi@webrtc.org Review URL: https://codereview.webrtc.org/1272163002 . Cr-Commit-Position: refs/heads/master@{#9678}
This commit is contained in:
parent
62dae19098
commit
bd10ee8bd3
@ -127,20 +127,6 @@ class VideoEngineOverride : public T {
|
||||
}
|
||||
};
|
||||
|
||||
// Macroes that declare test functions for a given test class, before and after
|
||||
// Init().
|
||||
// To use, define a test function called FooBody and pass Foo to the macro.
|
||||
#define TEST_PRE_VIDEOENGINE_INIT(TestClass, func) \
|
||||
TEST_F(TestClass, func##PreInit) { \
|
||||
func##Body(); \
|
||||
}
|
||||
#define TEST_POST_VIDEOENGINE_INIT(TestClass, func) \
|
||||
TEST_F(TestClass, func##PostInit) { \
|
||||
EXPECT_TRUE(engine_.Init(rtc::Thread::Current())); \
|
||||
func##Body(); \
|
||||
engine_.Terminate(); \
|
||||
}
|
||||
|
||||
template<class E>
|
||||
class VideoEngineTest : public testing::Test {
|
||||
protected:
|
||||
|
||||
@ -32,7 +32,6 @@
|
||||
|
||||
namespace webrtc {
|
||||
class AudioDeviceModule;
|
||||
class VideoCaptureModule;
|
||||
}
|
||||
namespace cricket {
|
||||
class WebRtcVideoDecoderFactory;
|
||||
@ -43,7 +42,6 @@ namespace cricket {
|
||||
|
||||
class WebRtcMediaEngineFactory {
|
||||
public:
|
||||
static MediaEngineInterface* Create();
|
||||
static MediaEngineInterface* Create(
|
||||
webrtc::AudioDeviceModule* adm,
|
||||
WebRtcVideoEncoderFactory* encoder_factory,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user