diff options
author | Paul Duffin <paulduffin@google.com> | 2021-03-11 12:32:12 +0000 |
---|---|---|
committer | Paul Duffin <paulduffin@google.com> | 2021-03-11 13:39:24 +0000 |
commit | 981b94b4609b34b880bc8b85fc51fed4daf94d17 (patch) | |
tree | f01ee74891ec085c7ea25d3b11e194783f584002 /sdk/cc_sdk_test.go | |
parent | 8306f25679746fd00ae2739b62fa1f70dae5a52e (diff) |
Switch CheckSnapshot from a testSdkResult method to a function
This will allow the testSdkResult to be replaced with the TestResult
when switching sdk package to use test fixtures.
Bug: 181070625
Test: m nothing
Change-Id: Ieca63f4c189f5e804102aeb4073289ea03143b6e
Diffstat (limited to 'sdk/cc_sdk_test.go')
-rw-r--r-- | sdk/cc_sdk_test.go | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/sdk/cc_sdk_test.go b/sdk/cc_sdk_test.go index 359177771..6da135a32 100644 --- a/sdk/cc_sdk_test.go +++ b/sdk/cc_sdk_test.go @@ -101,7 +101,7 @@ func TestSdkCompileMultilibOverride(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -353,7 +353,7 @@ func TestSnapshotWithObject(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -440,7 +440,7 @@ func TestSnapshotWithCcDuplicateHeaders(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkAllCopyRules(` myinclude/Test.h -> include/myinclude/Test.h .intermediates/mynativelib1/android_arm64_armv8-a_shared/mynativelib1.so -> arm64/lib/mynativelib1.so @@ -486,7 +486,7 @@ func TestSnapshotWithCcExportGeneratedHeaders(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -556,7 +556,7 @@ func TestSnapshotWithCcSharedLibraryCommonProperties(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -615,7 +615,7 @@ func TestSnapshotWithCcBinary(t *testing.T) { } `) - result.CheckSnapshot("mymodule_exports", "", + CheckSnapshot(result, "mymodule_exports", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -700,7 +700,7 @@ func TestMultipleHostOsTypesSnapshotWithCcBinary(t *testing.T) { } `) - result.CheckSnapshot("myexports", "", + CheckSnapshot(result, "myexports", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -853,7 +853,7 @@ func TestSnapshotWithSingleHostOsType(t *testing.T) { result := runTests(t, ctx, config) - result.CheckSnapshot("myexports", "", + CheckSnapshot(result, "myexports", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -991,7 +991,7 @@ func TestSnapshotWithCcStaticNocrtBinary(t *testing.T) { } `) - result.CheckSnapshot("mymodule_exports", "", + CheckSnapshot(result, "mymodule_exports", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1099,7 +1099,7 @@ func TestSnapshotWithCcSharedLibrary(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1200,7 +1200,7 @@ func TestSnapshotWithCcSharedLibrarySharedLibs(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1297,7 +1297,7 @@ func TestHostSnapshotWithCcSharedLibrary(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1424,7 +1424,7 @@ func TestMultipleHostOsTypesSnapshotWithCcSharedLibrary(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1552,7 +1552,7 @@ func TestSnapshotWithCcStaticLibrary(t *testing.T) { } `) - result.CheckSnapshot("myexports", "", + CheckSnapshot(result, "myexports", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1615,7 +1615,7 @@ func TestHostSnapshotWithCcStaticLibrary(t *testing.T) { } `) - result.CheckSnapshot("myexports", "", + CheckSnapshot(result, "myexports", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1729,7 +1729,7 @@ func TestSnapshotWithCcLibrary(t *testing.T) { } `) - result.CheckSnapshot("myexports", "", + CheckSnapshot(result, "myexports", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1843,7 +1843,7 @@ func TestHostSnapshotWithMultiLib64(t *testing.T) { } `) - result.CheckSnapshot("myexports", "", + CheckSnapshot(result, "myexports", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1940,7 +1940,7 @@ func TestSnapshotWithCcHeadersLibrary(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -1978,7 +1978,7 @@ func TestHostSnapshotWithCcHeadersLibrary(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -2080,7 +2080,7 @@ func TestDeviceAndHostSnapshotWithCcHeadersLibrary(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -2193,7 +2193,7 @@ func TestSystemSharedLibPropagation(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -2266,7 +2266,7 @@ cc_prebuilt_library_shared { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -2377,7 +2377,7 @@ func TestStubsLibrary(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -2430,7 +2430,7 @@ func TestDeviceAndHostSnapshotWithStubsLibrary(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -2543,7 +2543,7 @@ func TestUniqueHostSoname(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -2658,7 +2658,7 @@ func TestNoSanitizerMembers(t *testing.T) { } `) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkUnversionedAndroidBpContents(` // This is auto-generated. DO NOT EDIT. |