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

Issue 3160027: Set state of a new audio stream to paused until it starts playing. (Closed)

Created:
10 years, 4 months ago by Sergey Ulanov
Modified:
9 years, 7 months ago
CC:
chromium-reviews, fbarchard, darin-cc_chromium.org, awong, brettw-cc_chromium.org, ben+cc_chromium.org, scherkus (not reviewing), Alpha Left Google, Paweł Hajdan Jr.
Visibility:
Public.

Description

Set state of a new audio stream to Paused until it start to play. Also added media layout tests in ui tests. BUG=39825 TEST=sound is still playing (with and without autoplay). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56953

Patch Set 1 #

Patch Set 2 : added test #

Total comments: 4

Patch Set 3 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -13 lines) Patch
M DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/media_uitest.cc View 2 2 chunks +32 lines, -0 lines 0 comments Download
M chrome/renderer/media/audio_renderer_impl.cc View 1 chunk +7 lines, -2 lines 0 comments Download
M chrome/test/ui/ui_layout_test.cc View 1 chunk +17 lines, -11 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Sergey Ulanov
This is a first change to fix http://crbug.com/39825 .
10 years, 4 months ago (2010-08-19 00:09:16 UTC) #1
Sergey Ulanov
10 years, 4 months ago (2010-08-19 00:10:08 UTC) #2
Alpha Left Google
LGTM if it passes layout tests.
10 years, 4 months ago (2010-08-19 06:42:07 UTC) #3
scherkus (not reviewing)
hold on -- test_shell uses NullAudioRenderer and not AudioRendererImpl... I'm fairly certain we lack an ...
10 years, 4 months ago (2010-08-19 06:45:16 UTC) #4
Alpha Left Google
One simpler way to solve this is to the layout tests as UI tests, I've ...
10 years, 4 months ago (2010-08-19 07:11:55 UTC) #5
Sergey Ulanov
On 2010/08/19 07:11:55, Alpha wrote: > One simpler way to solve this is to the ...
10 years, 4 months ago (2010-08-20 18:08:43 UTC) #6
Paweł Hajdan Jr.
Drive-by with test comments. http://codereview.chromium.org/3160027/diff/7001/8002 File chrome/browser/media_uitest.cc (right): http://codereview.chromium.org/3160027/diff/7001/8002#newcode59 chrome/browser/media_uitest.cc:59: TEST_F(UILayoutTest, DISABLED_MediaUILayoutTest) { Every disabled ...
10 years, 4 months ago (2010-08-20 18:12:23 UTC) #7
Alpha Left Google
On 2010/08/20 18:08:43, sergeyu wrote: > On 2010/08/19 07:11:55, Alpha wrote: > > One simpler ...
10 years, 4 months ago (2010-08-20 18:13:04 UTC) #8
Sergey Ulanov
On Fri, Aug 20, 2010 at 11:13 AM, <hclam@chromium.org> wrote: > On 2010/08/20 18:08:43, sergeyu ...
10 years, 4 months ago (2010-08-20 18:19:02 UTC) #9
Alpha Left Google
sounds good. LGTM.
10 years, 4 months ago (2010-08-20 18:20:45 UTC) #10
Sergey Ulanov
10 years, 4 months ago (2010-08-21 00:37:11 UTC) #11
http://codereview.chromium.org/3160027/diff/7001/8002
File chrome/browser/media_uitest.cc (right):

http://codereview.chromium.org/3160027/diff/7001/8002#newcode59
chrome/browser/media_uitest.cc:59: TEST_F(UILayoutTest,
DISABLED_MediaUILayoutTest) {
On 2010/08/20 18:12:23, Paweł Hajdan Jr. wrote:
> Every disabled test should have a bug with Tests-Disabled label and the link
to
> the bug should be in a comment above the test.
> 
> Like // Disabled, http://crbug.com/1234.

Enabled the test, but some of the test cases are disabled.

http://codereview.chromium.org/3160027/diff/7001/8002#newcode86
chrome/browser/media_uitest.cc:86: RunLayoutTest(kMediaTests[i], kNoHttpPort);
On 2010/08/20 18:12:23, Paweł Hajdan Jr. wrote:
> I suggest splitting the test to more precisely identify failures.
It would slow down the tests significantly because the video files would have to
be copied to the temp directory every time.

Powered by Google App Engine
This is Rietveld 408576698