/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/testing/ |
D | OnMethodTestActivity.java | 9 private final List<String> transcript; field in OnMethodTestActivity 11 public OnMethodTestActivity(List<String> transcript) { in OnMethodTestActivity() argument 12 this.transcript = transcript; in OnMethodTestActivity() 17 transcript.add("onCreate was called with " + savedInstanceState.get("key")); in onCreate() 22 transcript.add("onStart was called"); in onStart() 27 transcript.add("onRestoreInstanceState was called"); in onRestoreInstanceState() 32 transcript.add("onPostCreate was called"); in onPostCreate() 37 transcript.add("onRestart was called"); in onRestart() 42 transcript.add("onResume was called"); in onResume() 47 transcript.add("onPostResume was called"); in onPostResume() [all …]
|
D | TestContentProvider1.java | 12 public final List<String> transcript = new ArrayList<>(); field in TestContentProvider1 16 transcript.add("onCreate"); in onCreate() 23 transcript.add("shutdown"); in shutdown() 28 transcript.add("query for " + uri); in query()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowAsyncTaskTest.java | 23 private List<String> transcript; field in ShadowAsyncTaskTest 27 transcript = new ArrayList<>(); in setUp() 37 assertThat(transcript).containsExactly("onPreExecute"); in testNormalFlow() 38 transcript.clear(); in testNormalFlow() 41 assertThat(transcript).containsExactly("doInBackground a, b"); in testNormalFlow() 42 transcript.clear(); in testNormalFlow() 46 assertThat(transcript).containsExactly("onPostExecute c"); in testNormalFlow() 54 assertThat(transcript).containsExactly("onPreExecute"); in testCancelBeforeBackground() 55 transcript.clear(); in testCancelBeforeBackground() 61 assertThat(transcript).isEmpty(); in testCancelBeforeBackground() [all …]
|
D | ShadowAsyncTaskLoaderTest.java | 17 private final List<String> transcript = new ArrayList<>(); field in ShadowAsyncTaskLoaderTest 28 assertThat(transcript).isEmpty(); in forceLoad_shouldEnqueueWorkOnSchedulers() 31 assertThat(transcript).containsExactly("loadInBackground"); in forceLoad_shouldEnqueueWorkOnSchedulers() 32 transcript.clear(); in forceLoad_shouldEnqueueWorkOnSchedulers() 35 assertThat(transcript).containsExactly("deliverResult 42"); in forceLoad_shouldEnqueueWorkOnSchedulers() 42 assertThat(transcript).isEmpty(); in forceLoad_multipleLoads() 45 assertThat(transcript).containsExactly("loadInBackground"); in forceLoad_multipleLoads() 46 transcript.clear(); in forceLoad_multipleLoads() 49 assertThat(transcript).containsExactly("deliverResult 42"); in forceLoad_multipleLoads() 52 transcript.clear(); in forceLoad_multipleLoads() [all …]
|
D | ShadowContextWrapperTest.java | 45 public ArrayList<String> transcript; field in ShadowContextWrapperTest 52 transcript = new ArrayList<>(); in setUp() 62 assertThat(transcript).containsExactly("Larry notified of foo"); in registerReceiver_shouldRegisterForAllIntentFilterActions() 63 transcript.clear(); in registerReceiver_shouldRegisterForAllIntentFilterActions() 66 assertThat(transcript).isEmpty(); in registerReceiver_shouldRegisterForAllIntentFilterActions() 69 assertThat(transcript).containsExactly("Larry notified of baz"); in registerReceiver_shouldRegisterForAllIntentFilterActions() 81 assertThat(transcript).containsExactly("Larry notified of foo", "Bob notified of foo"); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver() 82 transcript.clear(); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver() 85 assertThat(transcript).isEmpty(); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver() 88 assertThat(transcript).containsExactly("Larry notified of baz"); in sendBroadcast_shouldSendIntentToEveryInterestedReceiver() [all …]
|
D | ShadowActivityTest.java | 162 assertThat(activity.transcript) in startActivity_shouldDelegateToStartActivityForResult() 168 final List<String> transcript = new ArrayList<>(); field in ShadowActivityTest.TranscriptActivity 172 transcript.add( in onActivityResult() 214 assertThat(activity.transcript) in startActivityForResultAndReceiveResult_shouldSendResponsesBackToActivity() 290 final List<String> transcript = new ArrayList<>(); in onContentChangedShouldBeCalledAfterContentViewIsSet() local 292 customActivity.setTranscript(transcript); in onContentChangedShouldBeCalledAfterContentViewIsSet() 294 assertThat(transcript).containsExactly("onContentChanged was called; title is \"Main Layout\""); in onContentChangedShouldBeCalledAfterContentViewIsSet() 577 assertThat(activity.transcript).containsExactly( in recreateGoesThroughFullLifeCycle() 644 List<String> transcript = new ArrayList<>(); field in ShadowActivityTest.TestActivity 651 transcript.add("onSaveInstanceState"); in onSaveInstanceState() [all …]
|
D | ShadowViewTest.java | 65 private List<String> transcript; field in ShadowViewTest 70 transcript = new ArrayList<>(); in setUp() 110 transcript.add( in layout_shouldCallOnLayoutOnlyIfChanged() 115 assertThat(transcript).isEmpty(); in layout_shouldCallOnLayoutOnlyIfChanged() 117 assertThat(transcript).containsExactly("onLayout true 1 2 3 4"); in layout_shouldCallOnLayoutOnlyIfChanged() 118 transcript.clear(); in layout_shouldCallOnLayoutOnlyIfChanged() 120 assertThat(transcript).isEmpty(); in layout_shouldCallOnLayoutOnlyIfChanged() 125 final List<String> transcript = new ArrayList<>(); in shouldFocus() local 130 transcript.add(hasFocus ? "Gained focus" : "Lost focus"); in shouldFocus() 136 assertThat(transcript).isEmpty(); in shouldFocus() [all …]
|
D | ShadowDialogTest.java | 41 final List<String> transcript = new ArrayList<>(); in shouldCallOnDismissListener() local 48 transcript.add("onDismiss called!"); in shouldCallOnDismissListener() 53 assertThat(transcript).containsExactly("onDismiss called!"); in shouldCallOnDismissListener() 107 final List<String> transcript = new ArrayList<>(); in shouldOnlyCallOnCreateOnce() local 114 transcript.add("onCreate called"); in shouldOnlyCallOnCreateOnce() 119 assertThat(transcript).containsExactly("onCreate called"); in shouldOnlyCallOnCreateOnce() 120 transcript.clear(); in shouldOnlyCallOnCreateOnce() 124 assertThat(transcript).isEmpty(); in shouldOnlyCallOnCreateOnce()
|
D | ShadowRatingBarTest.java | 19 private List<String> transcript; field in ShadowRatingBarTest 25 transcript = new ArrayList<>(); in setup() 39 assertThat(transcript).containsExactly("onRatingChanged() - 5.0"); in testOnChangeNotification() 46 transcript.add("onRatingChanged() - " + rating); in onRatingChanged()
|
D | ShadowSeekBarTest.java | 21 private List<String> transcript; field in ShadowSeekBarTest 28 transcript = new ArrayList<>(); in setup() 42 assertThat(transcript).containsExactly("onProgressChanged() - 5"); in testOnChangeNotification() 49 transcript.add("onProgressChanged() - " + progress); in onProgressChanged()
|
D | AdapterViewBehavior.java | 31 final List<String> transcript = new ArrayList<>(); in shouldIgnoreSetSelectionCallsWithInvalidPosition() local 36 transcript.add("onItemSelected fired"); in shouldIgnoreSetSelectionCallsWithInvalidPosition() 45 assertThat(transcript).isEmpty(); in shouldIgnoreSetSelectionCallsWithInvalidPosition() 48 assertThat(transcript).isEmpty(); in shouldIgnoreSetSelectionCallsWithInvalidPosition()
|
D | ShadowListViewTest.java | 33 private List<String> transcript; field in ShadowListViewTest 42 transcript = new ArrayList<>(); in setUp() 142 transcript.add("item was clicked: " + position); in testPerformItemClick_ShouldFireOnItemClickListener() 147 assertThat(transcript).containsExactly("item was clicked: 0"); in testPerformItemClick_ShouldFireOnItemClickListener() 174 transcript.add("clicked on item " + position); in clickItemContainingText_shouldPerformItemClickOnList() 178 assertThat(transcript).containsExactly("clicked on item 1"); in clickItemContainingText_shouldPerformItemClickOnList() 194 transcript.add("clicked on item " + adapter.getItem(position)); in clickItemContainingText_shouldPerformItemClickOnList_arrayAdapter() 198 assertThat(transcript).containsExactly("clicked on item Item 3"); in clickItemContainingText_shouldPerformItemClickOnList_arrayAdapter()
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/ |
D | ActivityControllerTest.java | 36 private static final List<String> transcript = new ArrayList<>(); field in ActivityControllerTest 42 transcript.clear(); in setUp() 111 assertThat(transcript).containsAllOf("finishedOnCreate", "onCreate"); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused() 119 assertThat(transcript).contains("finishedOnCreate"); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 122 assertThat(transcript).contains("onCreate"); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 136 assertThat(transcript).containsAllOf("finishedOnStart", "onStart"); in start_callsPerformStartWhilePaused() 142 assertThat(transcript).containsAllOf("finishedOnStop", "onStop"); in stop_callsPerformStopWhilePaused() 148 assertThat(transcript).containsAllOf("finishedOnRestart", "onRestart"); in restart_callsPerformRestartWhilePaused() 154 assertThat(transcript).containsAllOf("finishedOnPause", "onPause"); in pause_callsPerformPauseWhilePaused() 160 assertThat(transcript).containsAllOf("finishedOnResume", "onResume"); in resume_callsPerformResumeWhilePaused() [all …]
|
D | IntentServiceControllerTest.java | 23 private static final List<String> transcript = new ArrayList<>(); field in IntentServiceControllerTest 29 transcript.clear(); in setUp() 65 assertThat(transcript).containsExactly("finishedOnCreate", "onCreate"); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused() 73 assertThat(transcript).contains("finishedOnCreate"); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 76 assertThat(transcript).contains("onCreate"); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 82 assertThat(transcript).containsAllOf("finishedOnUnbind", "onUnbind"); in unbind_callsUnbindWhilePaused() 88 assertThat(transcript).containsAllOf("finishedOnRebind", "onRebind"); in rebind_callsRebindWhilePaused() 94 assertThat(transcript).containsAllOf("finishedOnDestroy", "onDestroy"); in destroy_callsOnDestroyWhilePaused() 100 assertThat(transcript).containsAllOf("finishedOnBind", "onBind"); in bind_callsOnBindWhilePaused() 106 assertThat(transcript).containsAllOf("finishedOnHandleIntent", "onHandleIntent"); in startCommand_callsOnHandleIntentWhilePaused() [all …]
|
D | ServiceControllerTest.java | 23 private static final List<String> transcript = new ArrayList<>(); field in ServiceControllerTest 29 transcript.clear(); in setUp() 66 assertThat(transcript).containsExactly("finishedOnCreate", "onCreate"); in whenLooperIsNotPaused_shouldCreateWithMainLooperPaused() 74 assertThat(transcript).contains("finishedOnCreate"); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 77 assertThat(transcript).contains("onCreate"); in whenLooperIsAlreadyPaused_shouldCreateWithMainLooperPaused() 83 assertThat(transcript).containsAllOf("finishedOnUnbind", "onUnbind"); in unbind_callsUnbindWhilePaused() 89 assertThat(transcript).containsAllOf("finishedOnRebind", "onRebind"); in rebind_callsRebindWhilePaused() 95 assertThat(transcript).containsAllOf("finishedOnDestroy", "onDestroy"); in destroy_callsOnDestroyWhilePaused() 101 assertThat(transcript).containsAllOf("finishedOnBind", "onBind"); in bind_callsOnBindWhilePaused() 107 assertThat(transcript).containsAllOf("finishedOnStartCommand", "onStartCommand"); in startCommand_callsOnStartCommandWhilePaused() [all …]
|
D | ContentProviderControllerTest.java | 58 assertThat(controller.get().transcript).containsExactly("onCreate", "query for something"); in shouldRegisterWithContentResolver() 72 assertThat(myContentProvider.transcript).containsExactly("onCreate"); in create_shouldCallOnCreate() 78 assertThat(myContentProvider.transcript).containsExactly("shutdown"); in shutdown_shouldCallShutdown() 89 assertThat(controller.get().transcript).containsExactly("onCreate", "query for something"); in withoutManifest_shouldRegisterWithContentResolver() 95 assertThat(xContentProvider.transcript).containsExactly("x-authority not registered yet"); in contentProviderShouldBeCreatedBeforeBeingRegistered() 109 …transcript.add(contentProviderClient == null ? "x-authority not registered yet" : "x-authority is … in onCreate()
|
/external/robolectric-shadows/shadows/supportv4/src/test/java/org/robolectric/shadows/support/v4/ |
D | ShadowAsyncTaskLoaderTest.java | 17 private final List<String> transcript = new ArrayList<>(); field in ShadowAsyncTaskLoaderTest 28 assertThat(transcript).isEmpty(); in forceLoad_shouldEnqueueWorkOnSchedulers() 31 assertThat(transcript).containsExactly("loadInBackground"); in forceLoad_shouldEnqueueWorkOnSchedulers() 32 transcript.clear(); in forceLoad_shouldEnqueueWorkOnSchedulers() 35 assertThat(transcript).containsExactly("deliverResult 42"); in forceLoad_shouldEnqueueWorkOnSchedulers() 42 assertThat(transcript).isEmpty(); in forceLoad_multipleLoads() 45 assertThat(transcript).containsExactly("loadInBackground"); in forceLoad_multipleLoads() 46 transcript.clear(); in forceLoad_multipleLoads() 49 assertThat(transcript).containsExactly("deliverResult 42"); in forceLoad_multipleLoads() 52 transcript.clear(); in forceLoad_multipleLoads() [all …]
|
D | ShadowDialogFragmentTest.java | 48 assertThat(dialogFragment.transcript).containsExactly( in show_shouldCallLifecycleMethods() 67 assertThat(dialogFragment.transcript).containsExactly( in show_whenPassedATransaction_shouldCallShowWithManager() 119 final List<String> transcript = new ArrayList<>(); field in ShadowDialogFragmentTest.TestDialogFragment 125 transcript.add("onAttach"); in onAttach() 132 transcript.add("onCreate"); in onCreate() 138 transcript.add("onCreateDialog"); in onCreateDialog() 146 transcript.add("onCreateView"); in onCreateView() 152 transcript.add("onViewCreated"); in onViewCreated() 158 transcript.add("onActivityCreated"); in onActivityCreated() 164 transcript.add("onStart"); in onStart() [all …]
|
D | ShadowLocalBroadcastManagerTest.java | 26 private List<String> transcript = new ArrayList<>(); field in ShadowLocalBroadcastManagerTest 94 transcript.add("got intent " + intent.getAction()); in testGetBroadcastIntents() 103 assertThat(transcript).containsExactly("got intent foo"); in testGetBroadcastIntents()
|
/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/ |
D | SchedulerTest.java | 24 private final List<String> transcript = new ArrayList<>(); field in SchedulerTest 81 assertThat(transcript).isEmpty(); in setIdleStateToUnPause_shouldRunPendingTasks() 84 assertThat(transcript).containsExactly("one", "two"); in setIdleStateToUnPause_shouldRunPendingTasks() 93 assertThat(transcript).isEmpty(); in setIdleStateToConstantIdle_shouldRunAllTasks() 96 assertThat(transcript).containsExactly("one", "two", "three"); in setIdleStateToConstantIdle_shouldRunAllTasks() 105 assertThat(transcript).isEmpty(); in unPause_shouldRunPendingTasks() 108 assertThat(transcript).containsExactly("one", "two"); in unPause_shouldRunPendingTasks() 118 assertThat(transcript).isEmpty(); in idleConstantlyTrue_shouldRunAllTasks() 121 assertThat(transcript).containsExactly("one", "two", "three"); in idleConstantlyTrue_shouldRunAllTasks() 138 assertThat(transcript).containsExactly("one", "two"); in advanceBy_returnsTrueIffSomeJobWasRun() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/ |
D | TestRunnerSequenceTest.java | 35 public static List<String> transcript; field in TestRunnerSequenceTest.StateHolder 42 StateHolder.transcript = new ArrayList<>(); in setUp() 59 assertThat(StateHolder.transcript).containsExactly( in shouldRunThingsInTheRightOrder() 71 StateHolder.transcript.clear(); in shouldRunThingsInTheRightOrder() 85 assertThat(StateHolder.transcript).containsExactly( in whenNoAppManifest_shouldRunThingsInTheRightOrder() 97 StateHolder.transcript.clear(); in whenNoAppManifest_shouldRunThingsInTheRightOrder() 122 StateHolder.transcript.add("TEST!"); in shouldDoNothingMuch() 171 StateHolder.transcript.add("configureSandbox"); in configureSandbox() 180 StateHolder.transcript.add("beforeTest"); in beforeTest() 185 StateHolder.transcript.add("prepareTest"); in prepareTest() [all …]
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/util/concurrent/ |
D | RoboExecutorServiceTest.java | 20 private final List<String> transcript = new ArrayList<>(); field in RoboExecutorServiceTest 31 transcript.add("background event ran"); in setUp() 40 assertThat(transcript).isEmpty(); in execute_shouldRunStuffOnBackgroundThread() 43 assertThat(transcript).containsExactly("background event ran"); in execute_shouldRunStuffOnBackgroundThread() 50 assertThat(transcript).isEmpty(); in submitRunnable_shouldRunStuffOnBackgroundThread() 54 assertThat(transcript).containsExactly("background event ran"); in submitRunnable_shouldRunStuffOnBackgroundThread() 70 assertThat(transcript).isEmpty(); in submitCallable_shouldRunStuffOnBackgroundThread() 74 assertThat(transcript).containsExactly("background event ran"); in submitCallable_shouldRunStuffOnBackgroundThread() 97 assertThat(transcript).isEmpty(); in whenShutdownBeforeSubmittedTasksAreExecuted_TaskIsNotInTranscript() 107 assertThat(transcript).isEmpty(); in whenShutdownNow_ReturnedListContainsOneRunnable() [all …]
|
/external/robolectric-shadows/sandbox/src/test/java/org/robolectric/ |
D | SandboxClassLoaderTest.java | 87 private List<String> transcript = new ArrayList<>(); field in SandboxClassLoaderTest 88 private MyClassHandler classHandler = new MyClassHandler(transcript); 109 assertThat(transcript).isEmpty(); in forClassesWithNoDefaultConstructor_shouldCreateOneButItShouldNotCallShadow() 119 assertThat(transcript).containsExactly( in shouldDelegateToHandlerForConstructors() 177 assertThat(transcript).containsExactly( in callingNormalMethodShouldInvokeClassHandler() 190 assertThat(transcript).containsExactly( in shouldGenerateClassSpecificDirectAccessMethod() 211 assertThat(transcript).containsExactly( in callingStaticMethodShouldInvokeClassHandler() 232 assertThat(transcript).containsExactly( in callingNormalMethodReturningIntegerShouldInvokeClassHandler() 245 assertThat(transcript).containsExactly( in callingMethodReturningDoubleShouldInvokeClassHandler() 257 assertThat(transcript).containsExactly( in callingNativeMethodShouldInvokeClassHandler() [all …]
|
/external/boringssl/src/ssl/ |
D | handoff.cc | 61 Span<const uint8_t> transcript = s3->hs->transcript.buffer(); in SSL_serialize_handoff() local 64 !CBB_add_asn1_octet_string(&seq, transcript.data(), transcript.size()) || in SSL_serialize_handoff() 193 CBS transcript, hs_buf; in SSL_apply_handoff() local 194 if (!CBS_get_asn1(&seq, &transcript, CBS_ASN1_OCTETSTRING) || in SSL_apply_handoff() 212 if (CBS_len(&transcript) != 0) { in SSL_apply_handoff() 213 s3->hs->transcript.Update(transcript); in SSL_apply_handoff() 246 Span<const uint8_t> transcript; in SSL_serialize_handback() local 249 transcript = s3->hs->transcript.buffer(); in SSL_serialize_handback() 305 !CBB_add_asn1_octet_string(&seq, transcript.data(), transcript.size()) || in SSL_serialize_handback() 326 next_proto, alpn, hostname, channel_id, transcript, key_share; in SSL_apply_handback() local [all …]
|
D | tls13_enc.cc | 37 if (!hs->transcript.InitHash(version, cipher)) { in init_key_schedule() 41 hs->hash_len = hs->transcript.DigestLen(); in init_key_schedule() 55 hs->transcript.FreeBuffer(); in tls13_init_key_schedule() 56 return HKDF_extract(hs->secret, &hs->hash_len, hs->transcript.Digest(), psk, in tls13_init_key_schedule() 65 HKDF_extract(hs->secret, &hs->hash_len, hs->transcript.Digest(), psk, in tls13_init_early_key_schedule() 103 hs->transcript.Digest(), nullptr)) { in tls13_advance_key_schedule() 107 if (!hkdf_expand_label(hs->secret, hs->transcript.Digest(), hs->secret, in tls13_advance_key_schedule() 114 return HKDF_extract(hs->secret, &hs->hash_len, hs->transcript.Digest(), in, in tls13_advance_key_schedule() 125 if (!hs->transcript.GetHash(context_hash, &context_hash_len)) { in derive_secret() 129 return hkdf_expand_label(out, hs->transcript.Digest(), hs->secret, in derive_secret() [all …]
|