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

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
« no previous file with comments | « base/test/BUILD.gn ('k') | base/test/native_library_test_utils.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #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_
OLDNEW
« no previous file with comments | « base/test/BUILD.gn ('k') | base/test/native_library_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698