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

Side by Side Diff: base/test/native_library_test_utils.h

Issue 2277863002: Enable loading native libraries with RTLD_DEEPBIND (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 3 months 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698