Make iOS main() functions normal.
The weird foo_mains are no longer needed when we build with GN.
CQ_INCLUDE_TRYBOTS=skia.primary:Build-Mac-Clang-arm-Debug-iOS
Change-Id: Iae50696741e0dc277d96dda4968a1ae41cb17c8a
Reviewed-on: https://skia-review.googlesource.com/8064
Commit-Queue: Mike Klein <mtklein@chromium.org>
Reviewed-by: Stephan Altmueller <stephana@google.com>
diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
index 4cb55d0..6b7df71 100644
--- a/tests/skia_test.cpp
+++ b/tests/skia_test.cpp
@@ -135,8 +135,8 @@
return true;
}
-int test_main();
-int test_main() {
+int main(int argc, char** argv) {
+ SkCommandLineFlags::Parse(argc, argv);
#if DEBUG_DUMP_VERIFY
SkPathOpsDebug::gDumpOp = FLAGS_dumpOp;
SkPathOpsDebug::gVerifyOp = FLAGS_verifyOp;
@@ -268,10 +268,3 @@
return (status.failCount() == 0) ? 0 : 1;
}
-
-#if !defined(SK_BUILD_FOR_IOS)
-int main(int argc, char** argv) {
- SkCommandLineFlags::Parse(argc, argv);
- return test_main();
-}
-#endif