1 /* 2 * Copyright 2018 The WebRTC Project Authors. All rights reserved. 3 * 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 6 * tree. An additional intellectual property rights grant can be found 7 * in the file PATENTS. All contributing project authors may 8 * be found in the AUTHORS file in the root of the source tree. 9 */ 10 11 package org.webrtc; 12 13 import static org.junit.Assert.assertEquals; 14 15 import androidx.test.runner.AndroidJUnit4; 16 import org.junit.Test; 17 import org.junit.runner.RunWith; 18 import org.robolectric.annotation.Config; 19 import org.webrtc.VideoEncoder.ScalingSettings; 20 21 @RunWith(AndroidJUnit4.class) 22 @Config(manifest = Config.NONE) 23 public class ScalingSettingsTest { 24 @Test testToString()25 public void testToString() { 26 assertEquals("[ 1, 2 ]", new ScalingSettings(1, 2).toString()); 27 assertEquals("OFF", ScalingSettings.OFF.toString()); 28 } 29 } 30