diff options
Diffstat (limited to 'native_client_sdk/src/tests')
6 files changed, 7 insertions, 24 deletions
diff --git a/native_client_sdk/src/tests/nacl_io_socket_test/example.dsc b/native_client_sdk/src/tests/nacl_io_socket_test/example.dsc index 7d9a593..ec4379b 100644 --- a/native_client_sdk/src/tests/nacl_io_socket_test/example.dsc +++ b/native_client_sdk/src/tests/nacl_io_socket_test/example.dsc @@ -10,9 +10,7 @@ 'echo_server.cc', 'echo_server.h', ], - 'DEPS': ['ppapi_simple', 'nacl_io'], - # Order matters here: gtest has a "main" function that will be used if - # referenced before ppapi. + 'DEPS': ['ppapi_simple_cpp', 'nacl_io'], 'LIBS': ['ppapi_simple_cpp', 'ppapi_cpp', 'gmock', 'ppapi', 'gtest', 'nacl_io', 'pthread'], 'CXXFLAGS': ['-Wno-sign-compare'] } diff --git a/native_client_sdk/src/tests/nacl_io_socket_test/main.cc b/native_client_sdk/src/tests/nacl_io_socket_test/main.cc index 61066a2..e7ed5b8 100644 --- a/native_client_sdk/src/tests/nacl_io_socket_test/main.cc +++ b/native_client_sdk/src/tests/nacl_io_socket_test/main.cc @@ -5,6 +5,7 @@ #include <string> #include "gtest/gtest.h" + #include "ppapi/cpp/instance.h" #include "ppapi/cpp/var.h" #include "ppapi_simple/ps_main.h" @@ -42,7 +43,7 @@ class GTestEventListener : public ::testing::EmptyTestEventListener { } }; -int example_main(int argc, char* argv[]) { +int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); if (PSGetInstanceId() != 0) { ::testing::UnitTest::GetInstance()->listeners() @@ -50,7 +51,3 @@ int example_main(int argc, char* argv[]) { } return RUN_ALL_TESTS(); } - -// Register the function to call once the Instance Object is initialized. -// see: pappi_simple/ps_main.h -PPAPI_SIMPLE_REGISTER_MAIN(example_main); diff --git a/native_client_sdk/src/tests/nacl_io_test/example.dsc b/native_client_sdk/src/tests/nacl_io_test/example.dsc index 43d588c..08899cd 100644 --- a/native_client_sdk/src/tests/nacl_io_test/example.dsc +++ b/native_client_sdk/src/tests/nacl_io_test/example.dsc @@ -61,9 +61,7 @@ 'socket_test.cc', 'tty_test.cc', ], - 'DEPS': ['ppapi_simple', 'nacl_io'], - # Order matters here: gtest has a "main" function that will be used if - # referenced before ppapi. + 'DEPS': ['ppapi_simple_cpp', 'nacl_io'], 'LIBS': ['ppapi_simple_cpp', 'ppapi_cpp', 'gmock', 'nacl_io', 'ppapi', 'gtest', 'pthread'], 'INCLUDES': ["."], 'CXXFLAGS': ['-Wno-sign-compare'], diff --git a/native_client_sdk/src/tests/nacl_io_test/main.cc b/native_client_sdk/src/tests/nacl_io_test/main.cc index 31414e6..0db0151 100644 --- a/native_client_sdk/src/tests/nacl_io_test/main.cc +++ b/native_client_sdk/src/tests/nacl_io_test/main.cc @@ -42,7 +42,7 @@ class GTestEventListener : public ::testing::EmptyTestEventListener { } }; -int example_main(int argc, char* argv[]) { +int main(int argc, char* argv[]) { setenv("TERM", "xterm-256color", 0); ::testing::InitGoogleTest(&argc, argv); if (PSGetInstanceId() != 0) { @@ -51,7 +51,3 @@ int example_main(int argc, char* argv[]) { } return RUN_ALL_TESTS(); } - -// Register the function to call once the Instance Object is initialized. -// see: pappi_simple/ps_main.h -PPAPI_SIMPLE_REGISTER_MAIN(example_main); diff --git a/native_client_sdk/src/tests/sdk_util_test/example.dsc b/native_client_sdk/src/tests/sdk_util_test/example.dsc index 63b89ba..334d1da 100644 --- a/native_client_sdk/src/tests/sdk_util_test/example.dsc +++ b/native_client_sdk/src/tests/sdk_util_test/example.dsc @@ -10,9 +10,7 @@ 'main.cc', 'string_util_test.cc', ], - 'DEPS': ['ppapi_simple', 'sdk_util', 'nacl_io'], - # Order matters here: gtest has a "main" function that will be used if - # referenced before ppapi. + 'DEPS': ['ppapi_simple_cpp', 'sdk_util', 'nacl_io'], 'LIBS': ['ppapi_simple_cpp', 'ppapi_cpp', 'gmock', 'nacl_io', 'ppapi', 'gtest', 'pthread'], 'CXXFLAGS': ['-Wno-sign-compare'] } diff --git a/native_client_sdk/src/tests/sdk_util_test/main.cc b/native_client_sdk/src/tests/sdk_util_test/main.cc index a715b1b..eb2a8ea 100644 --- a/native_client_sdk/src/tests/sdk_util_test/main.cc +++ b/native_client_sdk/src/tests/sdk_util_test/main.cc @@ -42,7 +42,7 @@ class GTestEventListener : public ::testing::EmptyTestEventListener { } }; -int example_main(int argc, char* argv[]) { +int main(int argc, char* argv[]) { ::testing::InitGoogleTest(&argc, argv); if (PSGetInstanceId() != 0) { ::testing::UnitTest::GetInstance()->listeners() @@ -50,7 +50,3 @@ int example_main(int argc, char* argv[]) { } return RUN_ALL_TESTS(); } - -// Register the function to call once the Instance Object is initialized. -// see: pappi_simple/ps_main.h -PPAPI_SIMPLE_REGISTER_MAIN(example_main); |