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

Unified Diff: testing/android/native_test_util.cc

Issue 1071573003: [Android] Move testing/android/ to testing/android/native_test/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing errant commit Created 5 years, 8 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 | « testing/android/native_test_util.h ('k') | testing/test.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/android/native_test_util.cc
diff --git a/testing/android/native_test_util.cc b/testing/android/native_test_util.cc
deleted file mode 100644
index 885f297c1efb865ef6c72790dfab0af45c9943e7..0000000000000000000000000000000000000000
--- a/testing/android/native_test_util.cc
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "testing/android/native_test_util.h"
-
-#include "base/files/file_path.h"
-#include "base/files/file_util.h"
-#include "base/strings/string_tokenizer.h"
-#include "base/strings/string_util.h"
-
-namespace testing {
-namespace native_test_util {
-
-void ParseArgsFromString(const std::string& command_line,
- std::vector<std::string>* args) {
- base::StringTokenizer tokenizer(command_line, base::kWhitespaceASCII);
- tokenizer.set_quote_chars("\"");
- while (tokenizer.GetNext()) {
- std::string token;
- base::RemoveChars(tokenizer.token(), "\"", &token);
- args->push_back(token);
- }
-}
-
-void ParseArgsFromCommandLineFile(
- const char* path, std::vector<std::string>* args) {
- base::FilePath command_line(path);
- std::string command_line_string;
- if (base::ReadFileToString(command_line, &command_line_string)) {
- ParseArgsFromString(command_line_string, args);
- }
-}
-
-int ArgsToArgv(const std::vector<std::string>& args,
- std::vector<char*>* argv) {
- // We need to pass in a non-const char**.
- int argc = args.size();
-
- argv->resize(argc + 1);
- for (int i = 0; i < argc; ++i) {
- (*argv)[i] = const_cast<char*>(args[i].c_str());
- }
- (*argv)[argc] = NULL; // argv must be NULL terminated.
-
- return argc;
-}
-
-} // namespace native_test_util
-} // namespace testing
« no previous file with comments | « testing/android/native_test_util.h ('k') | testing/test.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698