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

Side by Side Diff: mojo/embedder/platform_channel_pair_posix_unittest.cc

Issue 559743002: Cleanup: Use base/files/file_util.h instead of base/file_util.h in cc/, chromecast/, cloud_print/, … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 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 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 #include "mojo/embedder/platform_channel_pair.h" 5 #include "mojo/embedder/platform_channel_pair.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <poll.h> 8 #include <poll.h>
9 #include <signal.h> 9 #include <signal.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 #include <sys/socket.h> 11 #include <sys/socket.h>
12 #include <sys/types.h> 12 #include <sys/types.h>
13 #include <sys/uio.h> 13 #include <sys/uio.h>
14 #include <unistd.h> 14 #include <unistd.h>
15 15
16 #include <deque> 16 #include <deque>
17 17
18 #include "base/file_util.h"
19 #include "base/files/file_path.h" 18 #include "base/files/file_path.h"
19 #include "base/files/file_util.h"
20 #include "base/files/scoped_file.h" 20 #include "base/files/scoped_file.h"
21 #include "base/files/scoped_temp_dir.h" 21 #include "base/files/scoped_temp_dir.h"
22 #include "base/logging.h" 22 #include "base/logging.h"
23 #include "base/macros.h" 23 #include "base/macros.h"
24 #include "mojo/common/test/test_utils.h" 24 #include "mojo/common/test/test_utils.h"
25 #include "mojo/embedder/platform_channel_utils_posix.h" 25 #include "mojo/embedder/platform_channel_utils_posix.h"
26 #include "mojo/embedder/platform_handle.h" 26 #include "mojo/embedder/platform_handle.h"
27 #include "mojo/embedder/platform_handle_vector.h" 27 #include "mojo/embedder/platform_handle_vector.h"
28 #include "mojo/embedder/scoped_platform_handle.h" 28 #include "mojo/embedder/scoped_platform_handle.h"
29 #include "testing/gtest/include/gtest/gtest.h" 29 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 char read_buf[100]; 246 char read_buf[100];
247 size_t bytes_read = fread(read_buf, 1, sizeof(read_buf), fp.get()); 247 size_t bytes_read = fread(read_buf, 1, sizeof(read_buf), fp.get());
248 EXPECT_EQ(file_contents.size(), bytes_read); 248 EXPECT_EQ(file_contents.size(), bytes_read);
249 EXPECT_EQ(file_contents, std::string(read_buf, bytes_read)); 249 EXPECT_EQ(file_contents, std::string(read_buf, bytes_read));
250 } 250 }
251 } 251 }
252 252
253 } // namespace 253 } // namespace
254 } // namespace embedder 254 } // namespace embedder
255 } // namespace mojo 255 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/common/test/test_support_impl.cc ('k') | mojo/embedder/simple_platform_shared_buffer_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698