summaryrefslogtreecommitdiff
path: root/sdk/sdk_test.go
diff options
context:
space:
mode:
author Paul Duffin <paulduffin@google.com> 2020-04-30 15:48:31 +0100
committer Paul Duffin <paulduffin@google.com> 2020-05-06 18:40:41 +0100
commitf34f6d853876b2a8e8e1b4d04e0b0e07dd007a04 (patch)
tree4a034260b2a50ec540db94d71150f976584f94cb /sdk/sdk_test.go
parente051d0d324e422aaf06194cfe65569cb3a33ed11 (diff)
Encapsulate properties to be optimized in a container
This allows additional metadata to be associated with a set of properties that will be used in a follow up change to filter properties that are ignored in some variants (e.g. host variants). Bug: 155628860 Test: m nothing Change-Id: Ie83c1ffbb71fd5d7a08d350571dad3e3209b1431
Diffstat (limited to 'sdk/sdk_test.go')
-rw-r--r--sdk/sdk_test.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/sdk/sdk_test.go b/sdk/sdk_test.go
index fde92307f..2f125e2d9 100644
--- a/sdk/sdk_test.go
+++ b/sdk/sdk_test.go
@@ -242,9 +242,13 @@ type testPropertiesStruct struct {
EmbeddedPropertiesStruct
}
+func (p *testPropertiesStruct) optimizableProperties() interface{} {
+ return p
+}
+
func TestCommonValueOptimization(t *testing.T) {
common := &testPropertiesStruct{}
- structs := []*testPropertiesStruct{
+ structs := []propertiesContainer{
&testPropertiesStruct{
private: "common",
Public_Kept: "common",