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. 4 5#include "base/bind.h" 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 10namespace { 11 12int RunTestSuite(TestSuite* test_suite) { 13 base::MessageLoop message_loop; 14 return test_suite->Run(); 15} 16 17} // namespace 18 19int main(int argc, char** argv) { 20 TestSuite test_suite(argc, argv); 21 22 return base::LaunchUnitTests( 23 argc, argv, base::Bind(&RunTestSuite, 24 base::Unretained(&test_suite))); 25} 26