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

Unified Diff: base/test/android/android_main_function_thunk.h

Issue 2549363004: Multiprocess test client: Android child process launcher rework. (Closed)
Patch Set: Fixed tests Created 4 years 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
Index: base/test/android/android_main_function_thunk.h
diff --git a/base/test/android/android_main_function_thunk.h b/base/test/android/android_main_function_thunk.h
new file mode 100644
index 0000000000000000000000000000000000000000..6f3db4871549a1cd487802bb3b7df4d4f19c782f
--- /dev/null
+++ b/base/test/android/android_main_function_thunk.h
@@ -0,0 +1,22 @@
+// Copyright 2016 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.
+
+#ifndef BASE_TEST_ANDROID_MAIN_FUNCTION_THUNK_H_
+#define BASE_TEST_ANDROID_MAIN_FUNCTION_THUNK_H_
+
+namespace base {
+namespace android {
+
+// This struct provides a way for multiprocess tests to specify the main
+// function that should be executed by the child process.
+
+struct AndroidMainFunctionThunk {
+ typedef int (*MainFuntion)(int, char**);
+ explicit AndroidMainFunctionThunk(MainFuntion main_function);
+};
+
+} // namespace android
+} // namespace base
+
+#endif // BASE_TEST_ANDROID_MAIN_FUNCTION_THUNK_H_

Powered by Google App Engine
This is Rietveld 408576698