blob: 098c5748483fdb7fbf2f75944938e70eb61b5c4a [file] [log] [blame]
phoglund@webrtc.orgcff98ca2011-11-08 13:08:25 +00001/*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
phoglund@webrtc.org188fc352011-12-19 09:36:03 +000010
kwiberg77eab702016-09-28 17:42:01 -070011#include "webrtc/test/gtest.h"
pbos@webrtc.org956aa7e2013-05-21 13:52:32 +000012#include "webrtc/test/testsupport/fileutils.h"
phoglund@webrtc.orgcff98ca2011-11-08 13:08:25 +000013
kwiberg492c09f2017-04-20 13:17:52 -070014namespace webrtc {
15namespace voetest {
16
phoglund@webrtc.orgff33bdd2012-10-10 15:41:03 +000017void InitializeGoogleTest(int* argc, char** argv) {
kjellander@webrtc.org52ec9852012-11-27 10:01:01 +000018 // Initialize WebRTC testing framework so paths to resources can be resolved.
19 webrtc::test::SetExecutablePath(argv[0]);
phoglund@webrtc.orgff33bdd2012-10-10 15:41:03 +000020 testing::InitGoogleTest(argc, argv);
21}
phoglund@webrtc.orgcff98ca2011-11-08 13:08:25 +000022
phoglund@webrtc.orgff33bdd2012-10-10 15:41:03 +000023int RunInAutomatedMode() {
phoglund@webrtc.orgcff98ca2011-11-08 13:08:25 +000024 return RUN_ALL_TESTS();
25}
kwiberg492c09f2017-04-20 13:17:52 -070026
27} // namespace voetest
28} // namespace webrtc