| 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.
|
|
|