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

Side by Side Diff: mojo/public/cpp/system/tests/core_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/public/cpp/system/tests/BUILD.gn ('k') | mojo/public/cpp/system/tests/macros_unittest.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file tests the C++ Mojo system core wrappers. 5 // This file tests the C++ Mojo system core wrappers.
6 // TODO(vtl): Maybe rename "CoreCppTest" -> "CoreTest" if/when this gets 6 // TODO(vtl): Maybe rename "CoreCppTest" -> "CoreTest" if/when this gets
7 // compiled into a different binary from the C API tests. 7 // compiled into a different binary from the C API tests.
8 8
9 #include "third_party/mojo/src/mojo/public/cpp/system/core.h" 9 #include "mojo/public/cpp/system/core.h"
10 10
11 #include <stddef.h> 11 #include <stddef.h>
12 12
13 #include <map> 13 #include <map>
14 14
15 #include "mojo/public/cpp/system/macros.h"
15 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace { 19 namespace {
20 20
21 const MojoHandleSignals kSignalReadableWritable = 21 const MojoHandleSignals kSignalReadableWritable =
22 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; 22 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE;
23 23
24 const MojoHandleSignals kSignalAll = MOJO_HANDLE_SIGNAL_READABLE | 24 const MojoHandleSignals kSignalAll = MOJO_HANDLE_SIGNAL_READABLE |
25 MOJO_HANDLE_SIGNAL_WRITABLE | 25 MOJO_HANDLE_SIGNAL_WRITABLE |
26 MOJO_HANDLE_SIGNAL_PEER_CLOSED; 26 MOJO_HANDLE_SIGNAL_PEER_CLOSED;
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 486
487 buffer1 = buffer1.Pass(); 487 buffer1 = buffer1.Pass();
488 488
489 EXPECT_TRUE(buffer1.is_valid()); 489 EXPECT_TRUE(buffer1.is_valid());
490 } 490 }
491 491
492 // TODO(vtl): Write data pipe tests. 492 // TODO(vtl): Write data pipe tests.
493 493
494 } // namespace 494 } // namespace
495 } // namespace mojo 495 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/cpp/system/tests/BUILD.gn ('k') | mojo/public/cpp/system/tests/macros_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698