| 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_
|
|
|