OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "gtest/gtest.h" | 7 #include "gtest/gtest.h" |
8 | 8 |
9 #if defined(SEL_LDR) | 9 #if defined(SEL_LDR) |
10 | 10 |
11 int main(int argc, char* argv[]) { | 11 int main(int argc, char* argv[]) { |
| 12 setenv("TERM", "xterm-256color", 0); |
12 ::testing::InitGoogleTest(&argc, argv); | 13 ::testing::InitGoogleTest(&argc, argv); |
13 return RUN_ALL_TESTS(); | 14 return RUN_ALL_TESTS(); |
14 } | 15 } |
15 | 16 |
16 #else | 17 #else |
17 | 18 |
18 #include "ppapi/cpp/instance.h" | 19 #include "ppapi/cpp/instance.h" |
19 #include "ppapi/cpp/var.h" | 20 #include "ppapi/cpp/var.h" |
20 #include "ppapi_simple/ps_main.h" | 21 #include "ppapi_simple/ps_main.h" |
21 | 22 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 ::testing::UnitTest::GetInstance()->listeners() | 58 ::testing::UnitTest::GetInstance()->listeners() |
58 .Append(new GTestEventListener()); | 59 .Append(new GTestEventListener()); |
59 return RUN_ALL_TESTS(); | 60 return RUN_ALL_TESTS(); |
60 } | 61 } |
61 | 62 |
62 // Register the function to call once the Instance Object is initialized. | 63 // Register the function to call once the Instance Object is initialized. |
63 // see: pappi_simple/ps_main.h | 64 // see: pappi_simple/ps_main.h |
64 PPAPI_SIMPLE_REGISTER_MAIN(example_main); | 65 PPAPI_SIMPLE_REGISTER_MAIN(example_main); |
65 | 66 |
66 #endif | 67 #endif |
OLD | NEW |