OLD | NEW |
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 "third_party/mojo/src/mojo/edk/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 <string> | 10 #include <string> |
11 | 11 |
12 #include "base/files/file_enumerator.h" | 12 #include "base/files/file_enumerator.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 // |names.size() + 1| for null terminator. | 73 // |names.size() + 1| for null terminator. |
74 char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*))); | 74 char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*))); |
75 for (size_t i = 0; i < names.size(); ++i) | 75 for (size_t i = 0; i < names.size(); ++i) |
76 rv[i] = base::strdup(names[i].c_str()); | 76 rv[i] = base::strdup(names[i].c_str()); |
77 return rv; | 77 return rv; |
78 } | 78 } |
79 | 79 |
80 } // namespace test | 80 } // namespace test |
81 } // namespace mojo | 81 } // namespace mojo |
OLD | NEW |