Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(139)

Side by Side Diff: webrtc/androidjunit/src/org/webrtc/CameraEnumerationTest.java

Issue 2377003002: Format all Java in WebRTC. (Closed)
Patch Set: Rebase. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | webrtc/api/android/java/src/org/webrtc/CallSessionFileRotatingLogSink.java » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
(...skipping 13 matching lines...) Expand all
24 24
25 /** 25 /**
26 * Tests for CameraEnumerationAndroid. 26 * Tests for CameraEnumerationAndroid.
27 */ 27 */
28 @RunWith(LocalRobolectricTestRunner.class) 28 @RunWith(LocalRobolectricTestRunner.class)
29 @Config(manifest = Config.NONE) 29 @Config(manifest = Config.NONE)
30 public class CameraEnumerationTest { 30 public class CameraEnumerationTest {
31 @Test 31 @Test
32 public void testGetClosestSupportedFramerateRange() { 32 public void testGetClosestSupportedFramerateRange() {
33 assertEquals(new FramerateRange(10000, 30000), 33 assertEquals(new FramerateRange(10000, 30000),
34 getClosestSupportedFramerateRange( 34 getClosestSupportedFramerateRange(Arrays.asList(new FramerateRange(10000 , 30000),
35 Arrays.asList(new FramerateRange(10000, 30000), 35 new FramerateRange(30000, 30000)),
36 new FramerateRange(30000, 30000)), 36 30 /* requestedFps */));
37 30 /* requestedFps */));
38 37
39 assertEquals(new FramerateRange(10000, 20000), 38 assertEquals(new FramerateRange(10000, 20000),
40 getClosestSupportedFramerateRange( 39 getClosestSupportedFramerateRange(
41 Arrays.asList(new FramerateRange(0, 30000), 40 Arrays.asList(new FramerateRange(0, 30000), new FramerateRa nge(10000, 20000),
42 new FramerateRange(10000, 20000), 41 new FramerateRange(14000, 16000), new FramerateRange(15 000, 15000)),
43 new FramerateRange(14000, 16000), 42 15 /* requestedFps */));
44 new FramerateRange(15000, 15000)),
45 15 /* requestedFps */));
46 43
47 assertEquals(new FramerateRange(10000, 20000), 44 assertEquals(new FramerateRange(10000, 20000),
48 getClosestSupportedFramerateRange( 45 getClosestSupportedFramerateRange(
49 Arrays.asList(new FramerateRange(15000, 15000), 46 Arrays.asList(new FramerateRange(15000, 15000),
50 new FramerateRange(10000, 20000), 47 new FramerateRange(10000, 20000), new FramerateRange(10 000, 30000)),
51 new FramerateRange(10000, 30000)), 48 10 /* requestedFps */));
52 10 /* requestedFps */));
53 } 49 }
54 } 50 }
OLDNEW
« no previous file with comments | « no previous file | webrtc/api/android/java/src/org/webrtc/CallSessionFileRotatingLogSink.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698