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

Issue 2062323002: Mojo C bindings library pt1: MojomBuffer (Closed)

Created:
4 years, 6 months ago by vardhan
Modified:
4 years, 6 months ago
Reviewers:
viettrungluu
CC:
mojo-reviews_chromium.org, gregsimon, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org, yzshen+mojopublicwatch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Mojo C bindings library pt1: MojomBuffer Also, make MOJO_STATIC_ASSERT work in C. R=viettrungluu@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/fd8d18dbf7a4f9ed8a607648cca6d2c595b1c580

Patch Set 1 #

Total comments: 18

Patch Set 2 : fix rounding on large ints. more unittests #

Total comments: 2

Patch Set 3 : MojomBuffer_Allocate(0) succeeds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+124 lines, -13 lines) Patch
M mojo/public/c/bindings/BUILD.gn View 1 chunk +4 lines, -0 lines 0 comments Download
A mojo/public/c/bindings/buffer.h View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
A mojo/public/c/bindings/lib/buffer.c View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M mojo/public/c/bindings/tests/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/c/bindings/tests/buffer_unittest.cc View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
M mojo/public/c/system/buffer.h View 3 chunks +3 lines, -3 lines 0 comments Download
M mojo/public/c/system/data_pipe.h View 3 chunks +3 lines, -3 lines 0 comments Download
M mojo/public/c/system/handle.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/c/system/macros.h View 1 chunk +1 line, -2 lines 0 comments Download
M mojo/public/c/system/message_pipe.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/c/system/wait_set.h View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
vardhan
PTAL
4 years, 6 months ago (2016-06-15 08:06:06 UTC) #1
viettrungluu
https://codereview.chromium.org/2062323002/diff/1/mojo/public/c/bindings/buffer.h File mojo/public/c/bindings/buffer.h (right): https://codereview.chromium.org/2062323002/diff/1/mojo/public/c/bindings/buffer.h#newcode14 mojo/public/c/bindings/buffer.h:14: // |MojomBuffer| is an object that manages a buffer. ...
4 years, 6 months ago (2016-06-15 15:00:58 UTC) #2
vardhan
ptal https://codereview.chromium.org/2062323002/diff/1/mojo/public/c/bindings/buffer.h File mojo/public/c/bindings/buffer.h (right): https://codereview.chromium.org/2062323002/diff/1/mojo/public/c/bindings/buffer.h#newcode14 mojo/public/c/bindings/buffer.h:14: // |MojomBuffer| is an object that manages a ...
4 years, 6 months ago (2016-06-15 15:48:00 UTC) #3
viettrungluu
https://codereview.chromium.org/2062323002/diff/1/mojo/public/c/bindings/lib/buffer.c File mojo/public/c/bindings/lib/buffer.c (right): https://codereview.chromium.org/2062323002/diff/1/mojo/public/c/bindings/lib/buffer.c#newcode17 mojo/public/c/bindings/lib/buffer.c:17: if (bytes_used + size > buf->buf_size || bytes_used + ...
4 years, 6 months ago (2016-06-15 15:59:49 UTC) #4
vardhan
ptal https://codereview.chromium.org/2062323002/diff/1/mojo/public/c/bindings/lib/buffer.c File mojo/public/c/bindings/lib/buffer.c (right): https://codereview.chromium.org/2062323002/diff/1/mojo/public/c/bindings/lib/buffer.c#newcode17 mojo/public/c/bindings/lib/buffer.c:17: if (bytes_used + size > buf->buf_size || bytes_used ...
4 years, 6 months ago (2016-06-15 16:10:21 UTC) #5
viettrungluu
lgtm
4 years, 6 months ago (2016-06-15 16:14:24 UTC) #6
vardhan
4 years, 6 months ago (2016-06-15 16:19:08 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
fd8d18dbf7a4f9ed8a607648cca6d2c595b1c580 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698