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

Side by Side Diff: mojo/public/cpp/system/tests/watcher_unittest.cc

Issue 1972703002: Fix include path for moved thread_task_runner_handle.h header in mojo/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: Created 4 years, 7 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
« no previous file with comments | « mojo/public/cpp/bindings/tests/validation_unittest.cc ('k') | mojo/public/cpp/system/watcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "mojo/public/cpp/system/watcher.h" 5 #include "mojo/public/cpp/system/watcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/run_loop.h" 12 #include "base/run_loop.h"
13 #include "base/thread_task_runner_handle.h" 13 #include "base/threading/thread_task_runner_handle.h"
14 #include "mojo/public/c/system/types.h" 14 #include "mojo/public/c/system/types.h"
15 #include "mojo/public/cpp/system/message_pipe.h" 15 #include "mojo/public/cpp/system/message_pipe.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace { 19 namespace {
20 20
21 template <typename Handler> 21 template <typename Handler>
22 void RunResultHandler(Handler f, MojoResult result) { f(result); } 22 void RunResultHandler(Handler f, MojoResult result) { f(result); }
23 23
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // ...but the watcher is cancelled first. 199 // ...but the watcher is cancelled first.
200 b_watcher.Cancel(); 200 b_watcher.Cancel();
201 201
202 EXPECT_FALSE(b_watcher.IsWatching()); 202 EXPECT_FALSE(b_watcher.IsWatching());
203 203
204 base::RunLoop().RunUntilIdle(); 204 base::RunLoop().RunUntilIdle();
205 } 205 }
206 206
207 } // namespace 207 } // namespace
208 } // namespace mojo 208 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/bindings/tests/validation_unittest.cc ('k') | mojo/public/cpp/system/watcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698