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

Side by Side Diff: mojo/common/test/test_support_impl.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
« no previous file with comments | « mojo/common/data_pipe_utils.cc ('k') | mojo/embedder/platform_channel_pair_posix_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 #include "mojo/common/test/test_support_impl.h" 5 #include "mojo/common/test/test_support_impl.h"
6 6
7 #include <stdlib.h> 7 #include <stdlib.h>
8 #include <string.h> 8 #include <string.h>
9 9
10 #include "base/file_util.h"
11 #include "base/files/file_enumerator.h" 10 #include "base/files/file_enumerator.h"
12 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "base/test/perf_log.h" 16 #include "base/test/perf_log.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace test { 19 namespace test {
20 namespace { 20 namespace {
21 21
22 base::FilePath ResolveSourceRootRelativePath(const char* relative_path) { 22 base::FilePath ResolveSourceRootRelativePath(const char* relative_path) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 // |names.size() + 1| for null terminator. 64 // |names.size() + 1| for null terminator.
65 char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*))); 65 char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*)));
66 for (size_t i = 0; i < names.size(); ++i) 66 for (size_t i = 0; i < names.size(); ++i)
67 rv[i] = base::strdup(names[i].c_str()); 67 rv[i] = base::strdup(names[i].c_str());
68 return rv; 68 return rv;
69 } 69 }
70 70
71 } // namespace test 71 } // namespace test
72 } // namespace mojo 72 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/common/data_pipe_utils.cc ('k') | mojo/embedder/platform_channel_pair_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698