OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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. |
| 4 |
| 5 #ifndef BASE_TEST_NATIVE_LIBRARY_TEST_UTILS_H_ |
| 6 #define BASE_TEST_NATIVE_LIBRARY_TEST_UTILS_H_ |
| 7 |
| 8 #include "build/build_config.h" |
| 9 |
| 10 #if defined(OS_WIN) |
| 11 #define NATIVE_LIBRARY_TEST_ALWAYS_EXPORT __declspec(dllexport) |
| 12 #else |
| 13 #define NATIVE_LIBRARY_TEST_ALWAYS_EXPORT __attribute__((visibility("default"))) |
| 14 #endif |
| 15 |
| 16 extern "C" { |
| 17 |
| 18 extern NATIVE_LIBRARY_TEST_ALWAYS_EXPORT int g_native_library_exported_value; |
| 19 |
| 20 // A function which increments an internal counter value and returns its value. |
| 21 // The first call returns 1, then 2, etc. |
| 22 NATIVE_LIBRARY_TEST_ALWAYS_EXPORT int NativeLibraryTestIncrement(); |
| 23 |
| 24 } // extern "C" |
| 25 |
| 26 #endif // BASE_TEST_NATIVE_LIBRARY_TEST_UTILS_H_ |
OLD | NEW |