diff options
author | Steven Moreland <smoreland@google.com> | 2017-11-02 21:38:28 -0700 |
---|---|---|
committer | Steven Moreland <smoreland@google.com> | 2017-11-02 21:38:58 -0700 |
commit | 87c9d7bb8f19cceab979d1b6e622131023596501 (patch) | |
tree | 33a14d7cd222b0d8d61ded87699dbeac648ec4d5 /cc | |
parent | 5c3c7681872ec2379685931e8160bc2524b6bb2d (diff) | |
download | build_soong-87c9d7bb8f19cceab979d1b6e622131023596501.tar.gz build_soong-87c9d7bb8f19cceab979d1b6e622131023596501.tar.bz2 build_soong-87c9d7bb8f19cceab979d1b6e622131023596501.zip |
Export test/benchmark factory symbols.
Bug: 35570956
Test: manual
Change-Id: I3dc2d7fd8876a0a222d1fc3e0f6ba27ecc2f50e8
Diffstat (limited to 'cc')
-rw-r--r-- | cc/test.go | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -47,39 +47,39 @@ type TestBinaryProperties struct { } func init() { - android.RegisterModuleType("cc_test", testFactory) - android.RegisterModuleType("cc_test_library", testLibraryFactory) - android.RegisterModuleType("cc_benchmark", benchmarkFactory) - android.RegisterModuleType("cc_test_host", testHostFactory) - android.RegisterModuleType("cc_benchmark_host", benchmarkHostFactory) + android.RegisterModuleType("cc_test", TestFactory) + android.RegisterModuleType("cc_test_library", TestLibraryFactory) + android.RegisterModuleType("cc_benchmark", BenchmarkFactory) + android.RegisterModuleType("cc_test_host", TestHostFactory) + android.RegisterModuleType("cc_benchmark_host", BenchmarkHostFactory) } // Module factory for tests -func testFactory() android.Module { +func TestFactory() android.Module { module := NewTest(android.HostAndDeviceSupported) return module.Init() } // Module factory for test libraries -func testLibraryFactory() android.Module { +func TestLibraryFactory() android.Module { module := NewTestLibrary(android.HostAndDeviceSupported) return module.Init() } // Module factory for benchmarks -func benchmarkFactory() android.Module { +func BenchmarkFactory() android.Module { module := NewBenchmark(android.HostAndDeviceSupported) return module.Init() } // Module factory for host tests -func testHostFactory() android.Module { +func TestHostFactory() android.Module { module := NewTest(android.HostSupported) return module.Init() } // Module factory for host benchmarks -func benchmarkHostFactory() android.Module { +func BenchmarkHostFactory() android.Module { module := NewBenchmark(android.HostSupported) return module.Init() } |