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

Side by Side Diff: mojo/edk/test/test_support_impl.cc

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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/test/multiprocess_test_helper_unittest.cc ('k') | mojo/edk/test/test_utils_posix.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/edk/test/test_support_impl.h" 5 #include "mojo/edk/test/test_support_impl.h"
6 6
7 #include <stddef.h>
7 #include <stdlib.h> 8 #include <stdlib.h>
8 #include <string.h> 9 #include <string.h>
9 10
10 #include <string> 11 #include <string>
11 12
12 #include "base/files/file_enumerator.h" 13 #include "base/files/file_enumerator.h"
13 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
15 #include "base/logging.h" 16 #include "base/logging.h"
16 #include "base/path_service.h" 17 #include "base/path_service.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // |names.size() + 1| for null terminator. 75 // |names.size() + 1| for null terminator.
75 char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*))); 76 char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*)));
76 for (size_t i = 0; i < names.size(); ++i) 77 for (size_t i = 0; i < names.size(); ++i)
77 rv[i] = base::strdup(names[i].c_str()); 78 rv[i] = base::strdup(names[i].c_str());
78 return rv; 79 return rv;
79 } 80 }
80 81
81 } // namespace test 82 } // namespace test
82 } // namespace edk 83 } // namespace edk
83 } // namespace mojo 84 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/test/multiprocess_test_helper_unittest.cc ('k') | mojo/edk/test/test_utils_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698