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

Side by Side Diff: ipc/mojo/async_handle_waiter_unittest.cc

Issue 846443006: Include Mojo SDK/EDK via fully-qualified paths in Chromium code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix include to satisfy checkdeps Created 5 years, 11 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 | « ipc/mojo/async_handle_waiter.cc ('k') | ipc/mojo/ipc_channel_mojo.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ipc/mojo/async_handle_waiter.h" 5 #include "ipc/mojo/async_handle_waiter.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
11 #include "mojo/public/cpp/system/message_pipe.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h"
13 13
14 namespace IPC { 14 namespace IPC {
15 namespace internal { 15 namespace internal {
16 namespace { 16 namespace {
17 17
18 void ReadOneByteOfX(MojoHandle pipe) { 18 void ReadOneByteOfX(MojoHandle pipe) {
19 uint32_t size = 1; 19 uint32_t size = 1;
20 char buffer = ' '; 20 char buffer = ' ';
21 MojoResult rv = MojoReadMessage(pipe, &buffer, &size, nullptr, nullptr, 21 MojoResult rv = MojoReadMessage(pipe, &buffer, &size, nullptr, nullptr,
22 MOJO_READ_MESSAGE_FLAG_NONE); 22 MOJO_READ_MESSAGE_FLAG_NONE);
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 200
201 EXPECT_TRUE(handler.IsClosingHandled()); 201 EXPECT_TRUE(handler.IsClosingHandled());
202 202
203 // |HandlerThatReenters::RestartAndClose| already closed it. 203 // |HandlerThatReenters::RestartAndClose| already closed it.
204 ignore_result(pipe_to_read_.release()); 204 ignore_result(pipe_to_read_.release());
205 } 205 }
206 206
207 } // namespace 207 } // namespace
208 } // namespace internal 208 } // namespace internal
209 } // namespace IPC 209 } // namespace IPC
OLDNEW
« no previous file with comments | « ipc/mojo/async_handle_waiter.cc ('k') | ipc/mojo/ipc_channel_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698