| 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 "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 Loading... |
| 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 |
| OLD | NEW |