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

Unified Diff: ports/nacl-spawn/nacl_spawn_test.cc

Issue 1417223003: Switch from using 'nacl_main' to 'main' entry point (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/nacl-spawn/cli_main.c ('k') | ports/nano/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/nacl-spawn/nacl_spawn_test.cc
diff --git a/ports/nacl-spawn/nacl_spawn_test.cc b/ports/nacl-spawn/nacl_spawn_test.cc
index 4e18707df30a548779b1f2c9c7f10285ad85cc49..32c8df54d487f73ab38dd8cae2fccca87b1ec0a4 100644
--- a/ports/nacl-spawn/nacl_spawn_test.cc
+++ b/ports/nacl-spawn/nacl_spawn_test.cc
@@ -4,8 +4,6 @@
#include "gtest/gtest.h"
-#include "nacl_main.h"
-
// These unittests should be run in the sel_ldr. In this mode
// nacl_io should not be initialized since we want direct access
// to the real filesystem. Verify this by checking the value
@@ -16,7 +14,13 @@ TEST(NaClSpawn, test_nacl_io_not_initialized) {
ASSERT_NE((char*)NULL, strstr(cwd, "out/build/nacl-spawn"));
}
-int nacl_main(int argc, char** argv) {
+extern bool _cli_main_init;
+
+TEST(NaClSpawn, test_cli_main_called) {
+ ASSERT_EQ(true, _cli_main_init);
+}
+
+int main(int argc, char** argv) {
setenv("TERM", "xterm-256color", 0);
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
« no previous file with comments | « ports/nacl-spawn/cli_main.c ('k') | ports/nano/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698