| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. | 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| 11 package org.webrtc; | 11 package org.webrtc; |
| 12 | 12 |
| 13 import static org.junit.Assert.assertEquals; | 13 import static org.junit.Assert.assertEquals; |
| 14 import static org.webrtc.CameraEnumerationAndroid.getClosestSupportedFramerateRa
nge; | 14 import static org.webrtc.CameraEnumerationAndroid.getClosestSupportedFramerateRa
nge; |
| 15 | 15 |
| 16 import org.webrtc.CameraEnumerationAndroid.CaptureFormat; | |
| 17 import org.webrtc.CameraEnumerationAndroid.CaptureFormat.FramerateRange; | 16 import org.webrtc.CameraEnumerationAndroid.CaptureFormat.FramerateRange; |
| 18 | 17 |
| 19 import org.junit.Test; | 18 import org.junit.Test; |
| 20 import org.junit.runner.RunWith; | 19 import org.junit.runner.RunWith; |
| 21 import org.robolectric.RobolectricTestRunner; | 20 import org.robolectric.RobolectricTestRunner; |
| 22 import org.robolectric.annotation.Config; | 21 import org.robolectric.annotation.Config; |
| 23 | 22 |
| 24 import java.util.Arrays; | 23 import java.util.Arrays; |
| 25 | 24 |
| 26 /** | 25 /** |
| (...skipping 19 matching lines...) Expand all Loading... |
| 46 15 /* requestedFps */)); | 45 15 /* requestedFps */)); |
| 47 | 46 |
| 48 assertEquals(new FramerateRange(10000, 20000), | 47 assertEquals(new FramerateRange(10000, 20000), |
| 49 getClosestSupportedFramerateRange( | 48 getClosestSupportedFramerateRange( |
| 50 Arrays.asList(new FramerateRange(15000, 15000), | 49 Arrays.asList(new FramerateRange(15000, 15000), |
| 51 new FramerateRange(10000, 20000), | 50 new FramerateRange(10000, 20000), |
| 52 new FramerateRange(10000, 30000)), | 51 new FramerateRange(10000, 30000)), |
| 53 10 /* requestedFps */)); | 52 10 /* requestedFps */)); |
| 54 } | 53 } |
| 55 } | 54 } |
| OLD | NEW |