summaryrefslogtreecommitdiffstats
path: root/cc/test/run_all_unittests.cc
blob: f4b42a0a984a016b132a24da6f9ffe7254dbca25 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/bind.h"
#include "base/message_loop/message_loop.h"
#include "base/test/test_suite.h"
#include "base/test/unit_test_launcher.h"
#include "cc/test/cc_test_suite.h"
#include "testing/gmock/include/gmock/gmock.h"

int main(int argc, char** argv) {
  ::testing::InitGoogleMock(&argc, argv);
  cc::CCTestSuite test_suite(argc, argv);

  return base::LaunchUnitTests(
      argc, argv, base::Bind(&cc::CCTestSuite::Run,
                             base::Unretained(&test_suite)));
}