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

Side by Side Diff: mojo/public/c/tests/system/message_pipe_unittest.cc

Issue 2244503002: mojo/public: Include gtest.h as "gtest/gtest.h", instead of via "absolute" path. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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
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 // This file tests the C message pipe API (the functions declared in 5 // This file tests the C message pipe API (the functions declared in
6 // mojo/public/c/include/mojo/system/message_pipe.h). 6 // mojo/public/c/include/mojo/system/message_pipe.h).
7 7
8 #include <mojo/system/message_pipe.h> 8 #include <mojo/system/message_pipe.h>
9 9
10 #include <mojo/result.h> 10 #include <mojo/result.h>
11 #include <mojo/system/buffer.h> 11 #include <mojo/system/buffer.h>
12 #include <mojo/system/handle.h> 12 #include <mojo/system/handle.h>
13 #include <mojo/system/wait.h> 13 #include <mojo/system/wait.h>
14 14
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "gtest/gtest.h"
16 16
17 namespace { 17 namespace {
18 18
19 const MojoHandleRights kDefaultMessagePipeHandleRights = 19 const MojoHandleRights kDefaultMessagePipeHandleRights =
20 MOJO_HANDLE_RIGHT_TRANSFER | MOJO_HANDLE_RIGHT_READ | 20 MOJO_HANDLE_RIGHT_TRANSFER | MOJO_HANDLE_RIGHT_READ |
21 MOJO_HANDLE_RIGHT_WRITE | MOJO_HANDLE_RIGHT_GET_OPTIONS | 21 MOJO_HANDLE_RIGHT_WRITE | MOJO_HANDLE_RIGHT_GET_OPTIONS |
22 MOJO_HANDLE_RIGHT_SET_OPTIONS; 22 MOJO_HANDLE_RIGHT_SET_OPTIONS;
23 23
24 TEST(MessagePipeTest, InvalidHandle) { 24 TEST(MessagePipeTest, InvalidHandle) {
25 char buffer[10] = {}; 25 char buffer[10] = {};
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 MOJO_WRITE_MESSAGE_FLAG_NONE)); 163 MOJO_WRITE_MESSAGE_FLAG_NONE));
164 164
165 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0)); 165 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h0));
166 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1)); 166 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h1));
167 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h_not_transferrable)); 167 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(h_not_transferrable));
168 } 168 }
169 169
170 // TODO(vtl): Add multi-threaded tests. 170 // TODO(vtl): Add multi-threaded tests.
171 171
172 } // namespace 172 } // namespace
OLDNEW
« no previous file with comments | « mojo/public/c/tests/system/message_pipe_perftest.cc ('k') | mojo/public/c/tests/system/reference_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698