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

Issue 13682: Checking in media::DataBuffer, a simple implementation of WritableBufferInterface. (Closed)

Created:
12 years ago by scherkus (not reviewing)
Modified:
9 years, 7 months ago
Reviewers:
cpu_(ooo_6.6-7.5)
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Checking in media::DataBuffer, a simple implementation of WritableBufferInterface. Removed media/base/media.cc, since it's no longer needed to generate media.lib. Also added media/using_media.scons and updated scons files for Linux build.

Patch Set 1 #

Total comments: 8

Patch Set 2 : it checkout value_string #

Patch Set 3 : it try #

Unified diffs Side-by-side diffs Delta from patch set Stats (+202 lines, -23 lines) Patch
M media/base/buffers.h View 3 chunks +5 lines, -5 lines 0 comments Download
A media/base/data_buffer.h View 1 1 chunk +50 lines, -0 lines 0 comments Download
A media/base/data_buffer.cc View 1 1 chunk +62 lines, -0 lines 0 comments Download
A media/base/data_buffer_unittest.cc View 1 1 chunk +49 lines, -0 lines 0 comments Download
M media/base/media.cc View 1 chunk +0 lines, -15 lines 0 comments Download
M media/build/media.vcproj View 1 chunk +6 lines, -2 lines 0 comments Download
M media/build/media_unittests.vcproj View 1 chunk +12 lines, -0 lines 0 comments Download
M media/media_lib.scons View 1 chunk +1 line, -1 line 0 comments Download
M media/media_unittests.scons View 2 chunks +2 lines, -0 lines 0 comments Download
A media/using_media.scons View 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scherkus (not reviewing)
12 years ago (2008-12-09 22:11:26 UTC) #1
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/13682/diff/1/2 File media/base/data_buffer.cc (right): http://codereview.chromium.org/13682/diff/1/2#newcode24 Line 24: } worth mentioning that DataBuffer assumes memory was ...
12 years ago (2008-12-10 21:42:45 UTC) #2
scherkus (not reviewing)
12 years ago (2008-12-10 23:46:03 UTC) #3
http://codereview.chromium.org/13682/diff/1/2
File media/base/data_buffer.cc (right):

http://codereview.chromium.org/13682/diff/1/2#newcode24
Line 24: }
On 2008/12/10 21:42:45, cpu wrote:
> worth mentioning that DataBuffer assumes memory was allocated with 'new
char[x]'

Done.

http://codereview.chromium.org/13682/diff/1/3
File media/base/data_buffer.h (right):

http://codereview.chromium.org/13682/diff/1/3#newcode21
Line 21: virtual int64 GetTimestamp();
On 2008/12/10 21:42:45, cpu wrote:
> hmmm, consider making this function const later on.

Done.

I added const to all getters in the interface definitions.

http://codereview.chromium.org/13682/diff/1/4
File media/base/data_buffer_unittest.cc (right):

http://codereview.chromium.org/13682/diff/1/4#newcode12
Line 12: };
On 2008/12/10 21:42:45, cpu wrote:
> afaik, you can remove this no-op class.

Done.

http://codereview.chromium.org/13682/diff/1/4#newcode31
Line 31: 
On 2008/12/10 21:42:45, cpu wrote:
> There are two flavors of testing: with EXPECT_xx and with ASSERT_xx, use the
> former in most cases unless the failure is truly fatal in the sense of making
> something down the road crash:
> 
> ASSERT_TRUE(data)  ok
> ASSERT_TRUE(buffer.get())  use EXPECT_EQ
> 
> 
> 
> 

Done.

Powered by Google App Engine
This is Rietveld 408576698