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

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

Issue 2023973002: Introduce cc StructTraits unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary MessageLoop Created 4 years, 6 months 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
« cc/ipc/DEPS ('K') | « cc/ipc/traits_test_service.mojom ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/bind.h" 5 #include "base/bind.h"
6 #include "base/test/launcher/unit_test_launcher.h" 6 #include "base/test/launcher/unit_test_launcher.h"
7 #include "base/test/test_io_thread.h"
7 #include "cc/test/cc_test_suite.h" 8 #include "cc/test/cc_test_suite.h"
9 #include "mojo/edk/embedder/embedder.h" // nogncheck
Ken Rockot(use gerrit already) 2016/05/31 15:49:22 Guess we need to fix this target somehow. This is
Fady Samuel 2016/05/31 15:57:20 Looks like it's not actually necessary anymore. Re
10 #include "mojo/edk/test/scoped_ipc_support.h" // nogncheck
8 11
9 int main(int argc, char** argv) { 12 int main(int argc, char** argv) {
10 cc::CCTestSuite test_suite(argc, argv); 13 cc::CCTestSuite test_suite(argc, argv);
11 14
15 mojo::edk::Init();
Ken Rockot(use gerrit already) 2016/05/31 15:49:22 If you're not doing actual IPC (i.e. no multiproce
Fady Samuel 2016/05/31 15:57:20 Done.
16 base::TestIOThread test_io_thread(base::TestIOThread::kAutoStart);
17 std::unique_ptr<mojo::edk::test::ScopedIPCSupport> ipc_support;
18 ipc_support.reset(
19 new mojo::edk::test::ScopedIPCSupport(test_io_thread.task_runner()));
20
12 return base::LaunchUnitTests( 21 return base::LaunchUnitTests(
13 argc, 22 argc,
14 argv, 23 argv,
15 base::Bind(&cc::CCTestSuite::Run, base::Unretained(&test_suite))); 24 base::Bind(&cc::CCTestSuite::Run, base::Unretained(&test_suite)));
16 } 25 }
OLDNEW
« cc/ipc/DEPS ('K') | « cc/ipc/traits_test_service.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698