Fix problem with touch selection handles when flicked
[chromium-blink-merge.git] / testing / android / native_test_util.h
bloba7567392b1ee4b80bb9f25be36eb491267142972
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef TESTING_ANDROID_NATIVE_TEST_UTIL_
6 #define TESTING_ANDROID_NATIVE_TEST_UTIL_
8 #include <stdio.h>
9 #include <string>
10 #include <vector>
12 // Helper methods for setting up environment for running gtest tests
13 // inside an APK.
14 namespace testing {
15 namespace native_test_util {
17 class ScopedMainEntryLogger {
18 public:
19 ScopedMainEntryLogger() {
20 printf(">>ScopedMainEntryLogger\n");
23 ~ScopedMainEntryLogger() {
24 printf("<<ScopedMainEntryLogger\n");
25 fflush(stdout);
26 fflush(stderr);
30 void ParseArgsFromCommandLineFile(
31 const char* path, std::vector<std::string>* args);
32 int ArgsToArgv(const std::vector<std::string>& args, std::vector<char*>* argv);
34 } // namespace native_test_util
35 } // namespace testing
37 #endif // TESTING_ANDROID_NATIVE_TEST_UTIL_