From 981b94b4609b34b880bc8b85fc51fed4daf94d17 Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Thu, 11 Mar 2021 12:32:12 +0000 Subject: 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 --- sdk/sdk_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sdk/sdk_test.go') diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go index a7acd0c5f..65a9001e6 100644 --- a/sdk/sdk_test.go +++ b/sdk/sdk_test.go @@ -169,7 +169,7 @@ func TestSnapshotVisibility(t *testing.T) { "package/Android.bp": []byte(packageBp), }) - result.CheckSnapshot("mysdk", "package", + CheckSnapshot(result, "mysdk", "package", checkAndroidBpContents(` // This is auto-generated. DO NOT EDIT. @@ -317,7 +317,7 @@ func TestSdkInstall(t *testing.T) { ` result := testSdkWithFs(t, sdk, nil) - result.CheckSnapshot("mysdk", "", + CheckSnapshot(result, "mysdk", "", checkAllOtherCopyRules(`.intermediates/mysdk/common_os/mysdk-current.zip -> mysdk-current.zip`), ) } -- cgit v1.2.3-59-g8ed1b