2011-11-08 13:08:25 +00:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2011 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.
|
|
|
|
|
*/
|
2011-12-19 09:36:03 +00:00
|
|
|
|
2013-05-21 13:52:32 +00:00
|
|
|
#include "testing/gtest/include/gtest/gtest.h"
|
|
|
|
|
#include "webrtc/test/testsupport/fileutils.h"
|
2011-11-08 13:08:25 +00:00
|
|
|
|
2012-10-10 15:41:03 +00:00
|
|
|
void InitializeGoogleTest(int* argc, char** argv) {
|
2012-11-27 10:01:01 +00:00
|
|
|
// Initialize WebRTC testing framework so paths to resources can be resolved.
|
|
|
|
|
webrtc::test::SetExecutablePath(argv[0]);
|
2012-10-10 15:41:03 +00:00
|
|
|
testing::InitGoogleTest(argc, argv);
|
|
|
|
|
}
|
2011-11-08 13:08:25 +00:00
|
|
|
|
2012-10-10 15:41:03 +00:00
|
|
|
int RunInAutomatedMode() {
|
2011-11-08 13:08:25 +00:00
|
|
|
return RUN_ALL_TESTS();
|
|
|
|
|
}
|