@@ -0,0 +1,1653 @@
+/*%0A * Copyright (C) 2016 The Android Open Source Project%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.google.android.cameraview;%0A%0Aimport static org.hamcrest.CoreMatchers.is;%0Aimport static org.junit.Assert.assertThat;%0A%0Aimport org.junit.Test;%0A%0Apublic class SizeMapTest %7B%0A%0A    @Test%0A    public void testAdd_simple() %7B%0A        SizeMap map = new SizeMap();%0A        map.add(new Size(3, 4));%0A        map.add(new Size(9, 16));%0A        assertThat(map.ratios().size(), is(2));%0A    %7D%0A%0A    @Test%0A    public void testAdd_duplicate() %7B%0A        SizeMap map = new SizeMap();%0A        map.add(new Size(3, 4));%0A        map.add(new Size(6, 8));%0A        map.add(new Size(9, 12));%0A        assertThat(map.ratios().size(), is(1));%0A        AspectRatio ratio = (AspectRatio) map.ratios().toArray()%5B0%5D;%0A        assertThat(ratio.toString(), is(%223:4%22));%0A        assertThat(map.sizes(ratio).size(), is(3));%0A    %7D%0A%0A    @Test%0A    public void testClear() %7B%0A        SizeMap map = new SizeMap();%0A        map.add(new Size(12, 34));%0A        assertThat(map.ratios().size(), is(1));%0A        map.clear();%0A        assertThat(map.ratios().size(), is(0));%0A    %7D%0A%0A%7D%0A

Create SizeMapTest.java