Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0feec37
commit 4715a22
Showing
1 changed file
with
3 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,14 @@ | ||
// Copyright (C) 2012-2014 Leap Motion, Inc. All rights reserved. | ||
#include "stdafx.h" | ||
#if __APPLE__ | ||
#pragma GCC diagnostic push | ||
#pragma GCC diagnostic ignored "-Wunused-private-field" | ||
#endif | ||
#include "EnclosedContextTestBase.hpp" | ||
#include "AutowiringEnclosure.h" | ||
#include <gtest/gtest-all.cc> | ||
#include <iostream> | ||
|
||
using namespace testing::internal; | ||
using namespace std; | ||
|
||
// Misc. globals: | ||
int g_argc; | ||
char** g_argv; | ||
|
||
template<class T, int n> | ||
const char(&ArraySizer(const T(&vals)[n]))[n]; | ||
#define ARYLEN(x) sizeof(ArraySizer(x)) | ||
|
||
int main(int argc, char* argv []) | ||
int main(int argc, char* argv[]) | ||
{ | ||
g_argc = argc; | ||
g_argv = argv; | ||
|
||
auto& listeners = testing::UnitTest::GetInstance()->listeners(); | ||
listeners.Append(new EnclosedContextTestBase); | ||
listeners.Append(new AutowiringEnclosure); | ||
testing::InitGoogleTest(&argc, argv); | ||
return RUN_ALL_TESTS(); | ||
} |