Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: webkit/compositor_bindings/test/run_all_unittests.cc

Issue 11232051: Remove static thread pointers from CC (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Apply code review comments Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/message_loop.h" 5 #include "base/message_loop.h"
6 #include "base/test/test_suite.h" 6 #include "base/test/test_suite.h"
7 #include "cc/proxy.h" 7 #include "testing/gmock/include/gmock/gmock.h"
8 #include "cc/thread_impl.h"
9 #include <gmock/gmock.h>
10 8
11 int main(int argc, char** argv) { 9 int main(int argc, char** argv) {
12 ::testing::InitGoogleMock(&argc, argv); 10 ::testing::InitGoogleMock(&argc, argv);
13 TestSuite testSuite(argc, argv); 11 TestSuite testSuite(argc, argv);
14 MessageLoop message_loop; 12 MessageLoop message_loop;
15 scoped_ptr<cc::Thread> mainCCThread = cc::ThreadImpl::createForCurrentThread() ;
16 cc::Proxy::setMainThread(mainCCThread.get());
17 int result = testSuite.Run(); 13 int result = testSuite.Run();
18 14
19 return result; 15 return result;
20 } 16 }
21
OLDNEW
« no previous file with comments | « webkit/compositor_bindings/compositor_bindings.gyp ('k') | webkit/compositor_bindings/web_compositor_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698