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

Issue 1989813002: Convert LooperExecutorTest in AppRTC Demo into JUnit test (Closed)

Created:
4 years, 7 months ago by sakal
Modified:
4 years, 7 months ago
Reviewers:
magjed_webrtc
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Convert LooperExecutorTest in AppRTC Demo into JUnit test LooperExecutorTest now uses Robolectric instead of being instrumentation test. This allows the test to be run faster and easier. Committed: https://crrev.com/f8312cb45aa9cf1bfb8f9053e64ccd7c778eb3f0 Cr-Commit-Position: refs/heads/master@{#12825}

Patch Set 1 #

Total comments: 13

Patch Set 2 : Changes according to magjed's comments #

Total comments: 5

Patch Set 3 : Add dot at the end of a sentence. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -70 lines) Patch
M webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java View 1 2 chunks +7 lines, -1 line 0 comments Download
A webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java View 1 2 1 chunk +122 lines, -0 lines 0 comments Download
D webrtc/examples/androidtests/src/org/appspot/apprtc/test/LooperExecutorTest.java View 1 chunk +0 lines, -69 lines 0 comments Download

Messages

Total messages: 20 (7 generated)
sakal
Magnus, please take a look. https://codereview.webrtc.org/1989813002/diff/1/webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java File webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java (right): https://codereview.webrtc.org/1989813002/diff/1/webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java#newcode74 webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java:74: handler.getLooper().quit(); This change was ...
4 years, 7 months ago (2016-05-18 12:18:39 UTC) #3
magjed_webrtc
It's not optimal that you need to expose the internal Handler in order to test ...
4 years, 7 months ago (2016-05-19 08:13:42 UTC) #4
sakal
On 2016/05/19 08:13:42, magjed_webrtc wrote: > It's not optimal that you need to expose the ...
4 years, 7 months ago (2016-05-19 11:59:55 UTC) #5
magjed_webrtc
https://codereview.webrtc.org/1989813002/diff/1/webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java File webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java (right): https://codereview.webrtc.org/1989813002/diff/1/webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java#newcode134 webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java:134: * Access to handler for testing purposes nit: Add ...
4 years, 7 months ago (2016-05-19 12:17:13 UTC) #6
sakal
https://codereview.webrtc.org/1989813002/diff/1/webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java File webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java (right): https://codereview.webrtc.org/1989813002/diff/1/webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java#newcode134 webrtc/examples/androidapp/src/org/appspot/apprtc/util/LooperExecutor.java:134: * Access to handler for testing purposes On 2016/05/19 ...
4 years, 7 months ago (2016-05-19 13:04:39 UTC) #7
magjed_webrtc
https://codereview.webrtc.org/1989813002/diff/20001/webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java File webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java (right): https://codereview.webrtc.org/1989813002/diff/20001/webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java#newcode71 webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java:71: verifyNoMoreInteractions(mockRunnable); Can you move this to the top of ...
4 years, 7 months ago (2016-05-20 07:50:52 UTC) #8
magjed_webrtc
lgtm https://codereview.webrtc.org/1989813002/diff/20001/webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java File webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java (right): https://codereview.webrtc.org/1989813002/diff/20001/webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java#newcode71 webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java:71: verifyNoMoreInteractions(mockRunnable); On 2016/05/20 07:50:52, magjed_webrtc wrote: > Can ...
4 years, 7 months ago (2016-05-20 07:57:04 UTC) #9
sakal
https://codereview.webrtc.org/1989813002/diff/20001/webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java File webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java (right): https://codereview.webrtc.org/1989813002/diff/20001/webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java#newcode71 webrtc/examples/androidjunit/src/org/appspot/apprtc/util/LooperExecutorTest.java:71: verifyNoMoreInteractions(mockRunnable); On 2016/05/20 07:50:52, magjed_webrtc wrote: > Can you ...
4 years, 7 months ago (2016-05-20 07:57:33 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1989813002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1989813002/40001
4 years, 7 months ago (2016-05-20 07:58:15 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
4 years, 7 months ago (2016-05-20 09:58:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1989813002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1989813002/40001
4 years, 7 months ago (2016-05-20 10:39:12 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 7 months ago (2016-05-20 10:56:54 UTC) #18
commit-bot: I haz the power
4 years, 7 months ago (2016-05-20 10:57:04 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/f8312cb45aa9cf1bfb8f9053e64ccd7c778eb3f0
Cr-Commit-Position: refs/heads/master@{#12825}

Powered by Google App Engine
This is Rietveld 408576698