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

Unified Diff: mojo/edk/test/test_support_impl.cc

Issue 1352913002: Remove Windows support from the EDK. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/edk/test/multiprocess_test_helper_unittest.cc ('k') | mojo/edk/test/test_utils_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/test/test_support_impl.cc
diff --git a/mojo/edk/test/test_support_impl.cc b/mojo/edk/test/test_support_impl.cc
index ddbaa78014a422000db2e7be7823143f90594a82..4bf11bde0ce7ad2c947f02ad88a11dc6b95f82c2 100644
--- a/mojo/edk/test/test_support_impl.cc
+++ b/mojo/edk/test/test_support_impl.cc
@@ -15,7 +15,6 @@
#include "base/logging.h"
#include "base/path_service.h"
#include "base/test/perf_log.h"
-#include "build/build_config.h"
namespace mojo {
namespace test {
@@ -64,13 +63,8 @@ char** TestSupportImpl::EnumerateSourceRootRelativeDirectory(
// |names.size() + 1| for null terminator.
char** rv = static_cast<char**>(calloc(names.size() + 1, sizeof(char*)));
- for (size_t i = 0; i < names.size(); ++i) {
-#if defined(OS_WIN)
- rv[i] = _strdup(names[i].c_str());
-#else
+ for (size_t i = 0; i < names.size(); ++i)
rv[i] = strdup(names[i].c_str());
-#endif
- }
return rv;
}
« no previous file with comments | « mojo/edk/test/multiprocess_test_helper_unittest.cc ('k') | mojo/edk/test/test_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698