blob: d0fddbcd41425878886808ca50a06bb411d432ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// 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/message_loop.h"
#include "base/test/test_suite.h"
#include "cc/thread_impl.h"
#include "cc/proxy.h"
#include "testing/gmock/include/gmock/gmock.h"
int main(int argc, char** argv) {
::testing::InitGoogleMock(&argc, argv);
TestSuite test_suite(argc, argv);
MessageLoop message_loop;
scoped_ptr<cc::Thread> mainCCThread = cc::ThreadImpl::createForCurrentThread();
cc::Proxy::setMainThread(mainCCThread.get());
int result = test_suite.Run();
return result;
}
|