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

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

Issue 2322573002: misc files A-P: Change ScopedTempDir::path() to GetPath() (Closed)
Patch Set: Just rebased 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
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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 base::ScopedTempDir temp_dir; 421 base::ScopedTempDir temp_dir;
422 ASSERT_TRUE(temp_dir.CreateUniqueTempDir()); 422 ASSERT_TRUE(temp_dir.CreateUniqueTempDir());
423 423
424 RUN_CHILD_ON_PIPE(CheckPlatformHandleFile, h) 424 RUN_CHILD_ON_PIPE(CheckPlatformHandleFile, h)
425 std::vector<MojoHandle> handles; 425 std::vector<MojoHandle> handles;
426 426
427 size_t pipe_count = GetParam(); 427 size_t pipe_count = GetParam();
428 for (size_t i = 0; i < pipe_count; ++i) { 428 for (size_t i = 0; i < pipe_count; ++i) {
429 base::FilePath unused; 429 base::FilePath unused;
430 base::ScopedFILE fp( 430 base::ScopedFILE fp(
431 CreateAndOpenTemporaryFileInDir(temp_dir.path(), &unused)); 431 CreateAndOpenTemporaryFileInDir(temp_dir.GetPath(), &unused));
432 const std::string world("world"); 432 const std::string world("world");
433 CHECK_EQ(fwrite(&world[0], 1, world.size(), fp.get()), world.size()); 433 CHECK_EQ(fwrite(&world[0], 1, world.size(), fp.get()), world.size());
434 fflush(fp.get()); 434 fflush(fp.get());
435 rewind(fp.get()); 435 rewind(fp.get());
436 MojoHandle handle; 436 MojoHandle handle;
437 ASSERT_EQ( 437 ASSERT_EQ(
438 CreatePlatformHandleWrapper( 438 CreatePlatformHandleWrapper(
439 ScopedPlatformHandle(test::PlatformHandleFromFILE(std::move(fp))), 439 ScopedPlatformHandle(test::PlatformHandleFromFILE(std::move(fp))),
440 &handle), 440 &handle),
441 MOJO_RESULT_OK); 441 MOJO_RESULT_OK);
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 INSTANTIATE_TEST_CASE_P( 1422 INSTANTIATE_TEST_CASE_P(
1423 , 1423 ,
1424 MultiprocessMessagePipeTestWithPeerSupport, 1424 MultiprocessMessagePipeTestWithPeerSupport,
1425 testing::Values(test::MojoTestBase::LaunchType::CHILD, 1425 testing::Values(test::MojoTestBase::LaunchType::CHILD,
1426 test::MojoTestBase::LaunchType::PEER, 1426 test::MojoTestBase::LaunchType::PEER,
1427 test::MojoTestBase::LaunchType::NAMED_CHILD, 1427 test::MojoTestBase::LaunchType::NAMED_CHILD,
1428 test::MojoTestBase::LaunchType::NAMED_PEER)); 1428 test::MojoTestBase::LaunchType::NAMED_PEER));
1429 } // namespace 1429 } // namespace
1430 } // namespace edk 1430 } // namespace edk
1431 } // namespace mojo 1431 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/embedder/platform_channel_pair_posix_unittest.cc ('k') | mojo/edk/system/platform_handle_dispatcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698