aboutsummaryrefslogtreecommitdiffstats
path: root/cc
diff options
context:
space:
mode:
authorSteven Moreland <smoreland@google.com>2017-11-02 21:38:28 -0700
committerSteven Moreland <smoreland@google.com>2017-11-02 21:38:58 -0700
commit87c9d7bb8f19cceab979d1b6e622131023596501 (patch)
tree33a14d7cd222b0d8d61ded87699dbeac648ec4d5 /cc
parent5c3c7681872ec2379685931e8160bc2524b6bb2d (diff)
downloadbuild_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.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/cc/test.go b/cc/test.go
index 9df34675..53c984a0 100644
--- a/cc/test.go
+++ b/cc/test.go
@@ -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()
}