1 // Copyright 2022 The Chromium Authors 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 package org.chromium.net; 6 7 import static com.google.common.truth.Truth.assertThat; 8 9 import androidx.test.ext.junit.runners.AndroidJUnit4; 10 import androidx.test.filters.SmallTest; 11 12 import org.junit.Test; 13 import org.junit.runner.RunWith; 14 15 import org.chromium.base.test.util.Batch; 16 17 import java.util.Arrays; 18 import java.util.List; 19 20 /** 21 * A test file which is used to teach people how to build, test and submit changes to Cronet. Do not 22 * move, change or delete unless you modify the onboarding instructions as well. 23 */ 24 @RunWith(AndroidJUnit4.class) 25 @Batch(Batch.UNIT_TESTS) 26 public class CronetOnboardingTest { 27 // TODO(noogler): STEP 1 - add your name here 28 private static final List<String> CRONET_CONTRIBUTORS = 29 Arrays.asList("colibie", "danstahr", "edechamps", "sporeba", "stefanoduo", "aymanm"); 30 31 // TODO(noogler): STEP 2 - run the test suite and see it fail 32 @Test 33 @SmallTest testNumberOfCronetContributors()34 public void testNumberOfCronetContributors() throws Exception { 35 // TODO(noogler): STEP 3 - fix the test, rerun it and see it pass 36 assertThat(CRONET_CONTRIBUTORS).hasSize(6); 37 } 38 } 39