| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 // Copied from mojo/edk/test/run_all_perftests.cc. | 5 // Copied from mojo/edk/test/run_all_perftests.cc. |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/test/perf_test_suite.h" | 8 #include "base/test/perf_test_suite.h" |
| 9 #include "mojo/edk/embedder/embedder.h" | 9 #include "mojo/edk/embedder/embedder.h" |
| 10 | 10 |
| 11 #if defined(OS_ANDROID) |
| 12 #include "base/test/android/android_main_function_thunk.h" |
| 13 |
| 14 int main(int argc, char** argv); |
| 15 namespace { |
| 16 // Needed for multiprocess tests to find the main function. |
| 17 base::android::AndroidMainFunctionThunk main_thunk(&main); |
| 18 } |
| 19 #endif |
| 20 |
| 11 int main(int argc, char** argv) { | 21 int main(int argc, char** argv) { |
| 12 base::PerfTestSuite test(argc, argv); | 22 base::PerfTestSuite test(argc, argv); |
| 13 | 23 |
| 14 mojo::edk::Init(); | 24 mojo::edk::Init(); |
| 15 | 25 |
| 16 return test.Run(); | 26 return test.Run(); |
| 17 } | 27 } |
| OLD | NEW |