aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-02-06 12:46:20 -0500
committerGravatar Mike Klein <mtklein@chromium.org>2017-02-06 18:02:41 +0000
commitbe28ee2974474800323ce4fabf62a839018be591 (patch)
tree0af11271212a0d04bba7e63e84d78860410f31d5 /tests
parent160907f8defef112c358cdd5cb9e5e093ca93b09 (diff)
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/skia_test.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/tests/skia_test.cpp b/tests/skia_test.cpp
index 4cb55d0853..6b7df71c28 100644
--- a/tests/skia_test.cpp
+++ b/tests/skia_test.cpp
@@ -135,8 +135,8 @@ static bool should_run(const char* testName, bool isGPUTest) {
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 @@ int test_main() {
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