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