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

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

Issue 2282413004: Support creating mojo peer connections from named pipes. (Closed)
Patch Set: Created 4 years, 3 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/edk/system/channel_posix.cc ('k') | mojo/edk/test/multiprocess_test_helper.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 #include <stdio.h> 7 #include <stdio.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 WriteMessage(child2, "bye"); 1412 WriteMessage(child2, "bye");
1413 END_CHILD(); 1413 END_CHILD();
1414 1414
1415 WriteMessage(child1, "bye"); 1415 WriteMessage(child1, "bye");
1416 END_CHILD() 1416 END_CHILD()
1417 1417
1418 // The error messages should match the processes which triggered them. 1418 // The error messages should match the processes which triggered them.
1419 EXPECT_NE(std::string::npos, first_process_error.find(kFirstErrorMessage)); 1419 EXPECT_NE(std::string::npos, first_process_error.find(kFirstErrorMessage));
1420 EXPECT_NE(std::string::npos, second_process_error.find(kSecondErrorMessage)); 1420 EXPECT_NE(std::string::npos, second_process_error.find(kSecondErrorMessage));
1421 } 1421 }
1422 INSTANTIATE_TEST_CASE_P(, 1422 INSTANTIATE_TEST_CASE_P(
1423 MultiprocessMessagePipeTestWithPeerSupport, 1423 ,
1424 testing::Values(test::MojoTestBase::LaunchType::CHILD, 1424 MultiprocessMessagePipeTestWithPeerSupport,
1425 test::MojoTestBase::LaunchType::PEER)); 1425 testing::Values(test::MojoTestBase::LaunchType::CHILD,
1426 test::MojoTestBase::LaunchType::PEER,
1427 test::MojoTestBase::LaunchType::NAMED_CHILD,
1428 test::MojoTestBase::LaunchType::NAMED_PEER));
1426 } // namespace 1429 } // namespace
1427 } // namespace edk 1430 } // namespace edk
1428 } // namespace mojo 1431 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/channel_posix.cc ('k') | mojo/edk/test/multiprocess_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698