Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Side by Side Diff: native_client_sdk/src/tests/nacl_io_test/main.cc

Issue 59883020: [NaCl SDK] nacl_io: Enable isatty running under sel_ldr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698