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

Unified Diff: base/test/BUILD.gn

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, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/native_library_win.cc ('k') | base/test/native_library_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/BUILD.gn
diff --git a/base/test/BUILD.gn b/base/test/BUILD.gn
index 8539348f6804fcef97d8bb7c919aade16ef69e58..886196c96e136393c5bfc7b75290ac478242a80c 100644
--- a/base/test/BUILD.gn
+++ b/base/test/BUILD.gn
@@ -267,6 +267,28 @@ static_library("run_all_unittests") {
]
}
+# These sources are linked into both the base_unittests binary and the test
+# shared library target below.
+source_set("native_library_test_utils") {
+ testonly = true
+ sources = [
+ "native_library_test_utils.cc",
+ "native_library_test_utils.h",
+ ]
+}
+
+# This shared library is dynamically loaded by NativeLibrary unittests.
+shared_library("test_shared_library") {
+ testonly = true
+ sources = [
+ "test_shared_library.cc",
+ ]
+
+ deps = [
+ ":native_library_test_utils",
+ ]
+}
+
static_library("run_all_base_unittests") {
# Only targets in base should depend on this, targets outside base
# should depend on run_all_unittests above.
« no previous file with comments | « base/native_library_win.cc ('k') | base/test/native_library_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698