| OLD | NEW |
| 1 // Copyright 2014 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Entry point for tests. gtest is able to automatically run the tests in other | 5 // Entry point for tests. gtest is able to automatically run the tests in other |
| 6 // *.cc files as long as they use the TEST macro. | 6 // *.cc files as long as they use the TEST macro. |
| 7 | 7 |
| 8 #include "native_client_sdk/src/libraries/ppapi_simple/ps_main.h" | 8 #include "native_client_sdk/src/libraries/ppapi_simple/ps_main.h" |
| 9 #include "testing/gtest/gtest.h" | 9 #include "testing/gtest/gtest.h" |
| 10 | 10 |
| 11 int test_main(int argc, char* argv[]) { | 11 int test_main(int argc, char* argv[]) { |
| 12 ::testing::InitGoogleTest(&argc, argv); | 12 ::testing::InitGoogleTest(&argc, argv); |
| 13 return RUN_ALL_TESTS(); | 13 return RUN_ALL_TESTS(); |
| 14 } | 14 } |
| 15 | 15 |
| 16 // Register the function to call once the Instance Object is initialized. | 16 // Register the function to call once the Instance Object is initialized. |
| 17 // see: pappi_simple/ps_main.h | 17 // see: pappi_simple/ps_main.h |
| 18 PPAPI_SIMPLE_REGISTER_MAIN(test_main); | 18 PPAPI_SIMPLE_REGISTER_MAIN(test_main); |
| OLD | NEW |