Michael Wasserman | e43d85e | 2014-10-29 12:33:44 -0700 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #include "mojo/public/c/system/main.h" |
Michael Wasserman | e43d85e | 2014-10-29 12:33:44 -0700 | [diff] [blame] | 6 | #include "mojo/public/cpp/application/application_test_base.h" |
Michael Wasserman | 6d1f41d | 2014-11-12 09:44:50 -0800 | [diff] [blame] | 7 | #include "mojo/public/cpp/environment/environment.h" |
Michael Wasserman | e43d85e | 2014-10-29 12:33:44 -0700 | [diff] [blame] | 8 | |
James Robinson | e5ae9e4 | 2015-01-26 17:53:08 -0800 | [diff] [blame] | 9 | MojoResult MojoMain(MojoHandle handle) { |
Michael Wasserman | 808cd0c | 2014-10-31 13:42:56 -0700 | [diff] [blame] | 10 | // An Environment instance is needed to construct run loops. |
Michael Wasserman | e43d85e | 2014-10-29 12:33:44 -0700 | [diff] [blame] | 11 | mojo::Environment environment; |
| 12 | |
James Robinson | e5ae9e4 | 2015-01-26 17:53:08 -0800 | [diff] [blame] | 13 | return mojo::test::RunAllTests(handle); |
Michael Wasserman | e43d85e | 2014-10-29 12:33:44 -0700 | [diff] [blame] | 14 | } |