1 // Copyright (c) 2012 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.
6 #include "base/message_loop/message_loop.h"
7 #include "base/test/launcher/unit_test_launcher.h"
8 #include "base/test/test_suite.h"
9 #include "testing/gmock/include/gmock/gmock.h"
13 int RunTestSuite(TestSuite* test_suite) {
14 base::MessageLoop message_loop;
15 return test_suite->Run();
20 int main(int argc, char** argv) {
21 ::testing::InitGoogleMock(&argc, argv);
23 TestSuite test_suite(argc, argv);
25 return base::LaunchUnitTests(
26 argc, argv, base::Bind(&RunTestSuite,
27 base::Unretained(&test_suite)));