diff options
author | 2017-08-17 17:49:50 +0200 | |
---|---|---|
committer | 2017-08-18 09:01:03 +0200 | |
commit | b86f8b06f5f4832b51e3be0de9d32170a79371ee (patch) | |
tree | 154fe134c52fafccd35b7e086c7076666491901d /src/test/java/com/google/devtools/build/lib/skyframe/serialization/PackageIdentifierCodecTest.java | |
parent | 7321812d556f659b65952d5205250230e19d76cb (diff) |
Open-source Skyframe serialization, and make AppleConfiguration serializable as a pilot. Currently not hooked up to anything, but will be shortly.
PiperOrigin-RevId: 165583517
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/skyframe/serialization/PackageIdentifierCodecTest.java')
-rw-r--r-- | src/test/java/com/google/devtools/build/lib/skyframe/serialization/PackageIdentifierCodecTest.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/skyframe/serialization/PackageIdentifierCodecTest.java b/src/test/java/com/google/devtools/build/lib/skyframe/serialization/PackageIdentifierCodecTest.java new file mode 100644 index 0000000000..9bc860af02 --- /dev/null +++ b/src/test/java/com/google/devtools/build/lib/skyframe/serialization/PackageIdentifierCodecTest.java @@ -0,0 +1,30 @@ +// Copyright 2017 The Bazel Authors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package com.google.devtools.build.lib.skyframe.serialization; + +import com.google.devtools.build.lib.cmdline.PackageIdentifier; +import com.google.devtools.build.lib.vfs.PathFragment; +import org.junit.runner.RunWith; +import org.junit.runners.JUnit4; + +/** Basic tests for {@link PackageIdentifierCodec}. */ +@RunWith(JUnit4.class) +public class PackageIdentifierCodecTest extends AbstractObjectCodecTest<PackageIdentifier> { + + public PackageIdentifierCodecTest() throws Exception { + super( + new PackageIdentifierCodec(), PackageIdentifier.create("@foo", PathFragment.create("bar"))); + } +} |