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

Side by Side Diff: mojo/edk/system/data_pipe_unittest.cc

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 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
« no previous file with comments | « mojo/edk/system/data_pipe_producer_dispatcher.h ('k') | mojo/edk/system/dispatcher.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 <stdint.h> 5 #include <stdint.h>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "mojo/edk/embedder/platform_channel_pair.h" 12 #include "mojo/edk/embedder/platform_channel_pair.h"
13 #include "mojo/edk/embedder/simple_platform_support.h" 13 #include "mojo/edk/embedder/simple_platform_support.h"
14 #include "mojo/edk/system/test_utils.h" 14 #include "mojo/edk/system/test_utils.h"
15 #include "mojo/edk/system/waiter.h" 15 #include "mojo/edk/system/waiter.h"
16 #include "mojo/public/c/system/data_pipe.h"
17 #include "mojo/public/c/system/functions.h"
18 #include "mojo/public/c/system/message_pipe.h"
19 #include "mojo/public/cpp/system/macros.h"
16 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
17 #include "third_party/mojo/src/mojo/public/c/system/data_pipe.h"
18 #include "third_party/mojo/src/mojo/public/c/system/functions.h"
19 #include "third_party/mojo/src/mojo/public/c/system/message_pipe.h"
20 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
21 21
22 namespace mojo { 22 namespace mojo {
23 namespace edk { 23 namespace edk {
24 namespace { 24 namespace {
25 25
26 const uint32_t kSizeOfOptions = 26 const uint32_t kSizeOfOptions =
27 static_cast<uint32_t>(sizeof(MojoCreateDataPipeOptions)); 27 static_cast<uint32_t>(sizeof(MojoCreateDataPipeOptions));
28 28
29 // In various places, we have to poll (since, e.g., we can't yet wait for a 29 // In various places, we have to poll (since, e.g., we can't yet wait for a
30 // certain amount of data to be available). This is the maximum number of 30 // certain amount of data to be available). This is the maximum number of
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 ASSERT_EQ(sizeof(read_data), num_bytes); 1621 ASSERT_EQ(sizeof(read_data), num_bytes);
1622 ASSERT_EQ(data, read_data); 1622 ASSERT_EQ(data, read_data);
1623 1623
1624 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(pipe0)); 1624 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(pipe0));
1625 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(pipe1)); 1625 ASSERT_EQ(MOJO_RESULT_OK, MojoClose(pipe1));
1626 } 1626 }
1627 1627
1628 } // namespace 1628 } // namespace
1629 } // namespace edk 1629 } // namespace edk
1630 } // namespace mojo 1630 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/data_pipe_producer_dispatcher.h ('k') | mojo/edk/system/dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698