Loading libs/binder/tests/binderSafeInterfaceTest.cpp +7 −4 Original line number Diff line number Diff line Loading @@ -858,7 +858,13 @@ TEST_F(SafeInterfaceTest, TestIncrementTwo) { ASSERT_EQ(b + 1, bPlusOne); } extern "C" int main(int argc, char **argv) { } // namespace tests } // namespace android int main(int argc, char** argv) { using namespace android; using namespace android::tests; testing::InitGoogleTest(&argc, argv); if (fork() == 0) { Loading @@ -875,6 +881,3 @@ extern "C" int main(int argc, char **argv) { return RUN_ALL_TESTS(); } } // namespace tests } // namespace android libs/binderdebug/stats.cpp +2 −4 Original line number Diff line number Diff line Loading @@ -22,9 +22,9 @@ #include <inttypes.h> namespace android { int main() { using namespace android; extern "C" int main() { // ignore args - we only print csv // we should use a csv library here for escaping, because Loading Loading @@ -58,5 +58,3 @@ extern "C" int main() { } return 0; } } // namespace android libs/binderdebug/tests/binderdebug_test.cpp +8 −5 Original line number Diff line number Diff line Loading @@ -60,8 +60,15 @@ TEST(BinderDebugTests, BinderThreads) { EXPECT_GE(pidInfo.threadCount, 1); } extern "C" { } // namespace test } // namespace binderdebug } // namespace android int main(int argc, char** argv) { using namespace android; using namespace android::binderdebug; using namespace android::binderdebug::test; ::testing::InitGoogleTest(&argc, argv); // Create a child/client process to call into the main process so we can ensure Loading @@ -84,7 +91,3 @@ int main(int argc, char** argv) { return RUN_ALL_TESTS(); } } // extern "C" } // namespace test } // namespace binderdebug } // namespace android Loading
libs/binder/tests/binderSafeInterfaceTest.cpp +7 −4 Original line number Diff line number Diff line Loading @@ -858,7 +858,13 @@ TEST_F(SafeInterfaceTest, TestIncrementTwo) { ASSERT_EQ(b + 1, bPlusOne); } extern "C" int main(int argc, char **argv) { } // namespace tests } // namespace android int main(int argc, char** argv) { using namespace android; using namespace android::tests; testing::InitGoogleTest(&argc, argv); if (fork() == 0) { Loading @@ -875,6 +881,3 @@ extern "C" int main(int argc, char **argv) { return RUN_ALL_TESTS(); } } // namespace tests } // namespace android
libs/binderdebug/stats.cpp +2 −4 Original line number Diff line number Diff line Loading @@ -22,9 +22,9 @@ #include <inttypes.h> namespace android { int main() { using namespace android; extern "C" int main() { // ignore args - we only print csv // we should use a csv library here for escaping, because Loading Loading @@ -58,5 +58,3 @@ extern "C" int main() { } return 0; } } // namespace android
libs/binderdebug/tests/binderdebug_test.cpp +8 −5 Original line number Diff line number Diff line Loading @@ -60,8 +60,15 @@ TEST(BinderDebugTests, BinderThreads) { EXPECT_GE(pidInfo.threadCount, 1); } extern "C" { } // namespace test } // namespace binderdebug } // namespace android int main(int argc, char** argv) { using namespace android; using namespace android::binderdebug; using namespace android::binderdebug::test; ::testing::InitGoogleTest(&argc, argv); // Create a child/client process to call into the main process so we can ensure Loading @@ -84,7 +91,3 @@ int main(int argc, char** argv) { return RUN_ALL_TESTS(); } } // extern "C" } // namespace test } // namespace binderdebug } // namespace android