blob: 128d8aef350067ba168a146266740cc7696128a4 [file] [log] [blame]
Michael Wassermane43d85e2014-10-29 12:33:44 -07001// 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 Wassermane43d85e2014-10-29 12:33:44 -07006#include "mojo/public/cpp/application/application_test_base.h"
Michael Wasserman6d1f41d2014-11-12 09:44:50 -08007#include "mojo/public/cpp/environment/environment.h"
Michael Wassermane43d85e2014-10-29 12:33:44 -07008
James Robinsone5ae9e42015-01-26 17:53:08 -08009MojoResult MojoMain(MojoHandle handle) {
Michael Wasserman808cd0c2014-10-31 13:42:56 -070010 // An Environment instance is needed to construct run loops.
Michael Wassermane43d85e2014-10-29 12:33:44 -070011 mojo::Environment environment;
12
James Robinsone5ae9e42015-01-26 17:53:08 -080013 return mojo::test::RunAllTests(handle);
Michael Wassermane43d85e2014-10-29 12:33:44 -070014}