diff options
author | 2018-04-10 12:21:40 -0700 | |
---|---|---|
committer | 2018-04-10 12:23:41 -0700 | |
commit | a124bbf0ccecb32fd2f62d309e3e9486986b4323 (patch) | |
tree | e20072577ce10da13887909e67e8d724ba9f2bcc /src/test/java/com/google/devtools/build/lib/rules/apple | |
parent | 8ae0b9d94d1b1c74e5e3adc1536bb641311c05ae (diff) |
Make some objects frequently encountered during serialization into constants. A lot of care is needed here because we're using reference equality. I plan to add value-equality constants in a follow-up.
Add ImmutableSortedSet marshaller because I think it might have been needed, and hey, why not.
PiperOrigin-RevId: 192326359
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/rules/apple')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/rules/apple/AppleConfigurationSerializationTest.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/apple/AppleConfigurationSerializationTest.java b/src/test/java/com/google/devtools/build/lib/rules/apple/AppleConfigurationSerializationTest.java index e79ae57585..444f581f1c 100644 --- a/src/test/java/com/google/devtools/build/lib/rules/apple/AppleConfigurationSerializationTest.java +++ b/src/test/java/com/google/devtools/build/lib/rules/apple/AppleConfigurationSerializationTest.java @@ -32,6 +32,14 @@ public class AppleConfigurationSerializationTest { new SerializationTester(getSubjects()).runTests(); } + @Test + public void optionsSerialization() throws Exception { + new SerializationTester( + BuildOptions.of(ImmutableList.of(AppleCommandLineOptions.class)) + .get(AppleCommandLineOptions.class)) + .runTests(); + } + private static ImmutableList<AppleConfiguration> getSubjects() { AppleCommandLineOptions firstOptions = new AppleCommandLineOptions(); firstOptions.mandatoryMinimumVersion = false; |