Extract FreezeHooks and make them testable (#4654)

This commit is contained in:
Alexander Shabalin
2021-01-29 10:51:13 +03:00
committed by Vasily Levchenko
parent e2280ce855
commit d84c83d7da
13 changed files with 189 additions and 9 deletions
@@ -33,7 +33,9 @@ open class CompileToBitcode @Inject constructor(
val linkerArgs = mutableListOf<String>()
var excludeFiles: List<String> = listOf(
"**/*Test.cpp",
"**/*TestSupport.cpp",
"**/*Test.mm",
"**/*TestSupport.mm",
)
var includeFiles: List<String> = listOf(
"**/*.cpp",
@@ -206,7 +206,7 @@ private fun createTestTask(
).apply {
this.sanitizer = sanitizer
excludeFiles = emptyList()
includeFiles = listOf("**/*Test.cpp", "**/*Test.mm")
includeFiles = listOf("**/*Test.cpp", "**/*TestSupport.cpp", "**/*Test.mm", "**/*TestSupport.mm")
dependsOn(it)
dependsOn("downloadGoogleTest")
compilerArgs.addAll(it.compilerArgs)