Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1197)

Issue 2321041: More test tools for HTTP testing (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 7 months ago by jeremy.wadsack
Modified:
13 years, 6 months ago
Reviewers:
Michael Frederick
CC:
npr-android_googlegroups.com
Base URL:
http://npr-android-app.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Here are a set of classes (and patches) for abstracting the HTTP testing for the media player into several different test cases. This may be helpful in other testing. Also included are updated test cases for corner cases although these sometimes don't all pass on 2.1 and earlier — I think there are still some bugs in the media player there that I'm trying to nail down. (e.g issue 2, 6 and possibly 26, 41).

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fixes #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+773 lines, -224 lines) Patch
Npr/src/org/npr/android/news/PlaybackService.java View 1 14 chunks +46 lines, -42 lines 1 comment Download
Npr/src/org/npr/android/news/PlayerActivity.java View 1 1 chunk +5 lines, -5 lines 0 comments Download
Npr_Test/default.properties View 1 1 chunk +1 line, -1 line 0 comments Download
Npr_Test/src/org/npr/android/news/PlaybackServiceTest.java View 1 9 chunks +163 lines, -10 lines 0 comments Download
Npr_Test/src/org/npr/android/test/BlockedHttpServer.java View 1 chunk +87 lines, -0 lines 0 comments Download
Npr_Test/src/org/npr/android/test/HttpRawResourceServer.java View 1 2 chunks +74 lines, -166 lines 0 comments Download
Npr_Test/src/org/npr/android/test/HttpServer.java View 1 chunk +334 lines, -0 lines 0 comments Download
Npr_Test/src/org/npr/android/test/NullStreamServer.java View 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 7
jeremy.wadsack
13 years, 7 months ago (2010-09-29 22:15:13 UTC) #1
Michael Frederick
http://codereview.appspot.com/2321041/diff/1/Npr/src/org/npr/android/news/PlaybackService.java File Npr/src/org/npr/android/news/PlaybackService.java (right): http://codereview.appspot.com/2321041/diff/1/Npr/src/org/npr/android/news/PlaybackService.java#newcode199 Npr/src/org/npr/android/news/PlaybackService.java:199: if( proxy != null ) { Check spacing, e.g. ...
13 years, 7 months ago (2010-10-01 16:26:58 UTC) #2
jeremy.wadsack
Updates as suggested and responses. http://codereview.appspot.com/2321041/diff/1/Npr_Test/default.properties File Npr_Test/default.properties (right): http://codereview.appspot.com/2321041/diff/1/Npr_Test/default.properties#newcode11 Npr_Test/default.properties:11: target=android-3 On 2010/10/01 16:26:59, ...
13 years, 7 months ago (2010-10-01 18:17:02 UTC) #3
jeremy.wadsack
One more thought on the 'target' value. Could use some clarification here. http://codereview.appspot.com/2321041/diff/1/Npr_Test/default.properties File Npr_Test/default.properties ...
13 years, 6 months ago (2010-10-04 23:34:48 UTC) #4
Michael Frederick
http://codereview.appspot.com/2321041/diff/1/Npr_Test/default.properties File Npr_Test/default.properties (right): http://codereview.appspot.com/2321041/diff/1/Npr_Test/default.properties#newcode11 Npr_Test/default.properties:11: target=android-3 On 2010/10/04 23:34:49, jeremy.wadsack wrote: > On 2010/10/01 ...
13 years, 6 months ago (2010-10-05 00:13:28 UTC) #5
jeremy.wadsack
Ok. We'll leave that properties as it was. Anything else? http://codereview.appspot.com/2321041/diff/1/Npr_Test/default.properties File Npr_Test/default.properties (right): http://codereview.appspot.com/2321041/diff/1/Npr_Test/default.properties#newcode11 ...
13 years, 6 months ago (2010-10-05 00:19:49 UTC) #6
Michael Frederick
13 years, 6 months ago (2010-10-05 00:41:07 UTC) #7
LGTM

http://codereview.appspot.com/2321041/diff/13001/Npr/src/org/npr/android/news...
File Npr/src/org/npr/android/news/PlaybackService.java (right):

http://codereview.appspot.com/2321041/diff/13001/Npr/src/org/npr/android/news...
Npr/src/org/npr/android/news/PlaybackService.java:71: // This is set if the
currently playing item fails to play, so that
Can you fix this comment?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b