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

Issue 8400024: Add TestConnectFailure, TestGetHandleFailure and TestConnectAndPipe to PPAPI Broker UI test. (Closed)

Created:
9 years, 1 month ago by xhwang
Modified:
9 years, 1 month ago
Reviewers:
brettw, jam, ddorwin, piman
CC:
chromium-reviews
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add TestConnectFailure, TestGetHandleFailure and TestConnectAndPipe to PPAPI Broker UI test. Also fix wrong sandbox options for broker process on Windows and Mac. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110241

Patch Set 1 #

Total comments: 27

Patch Set 2 : Update according to the comments. #

Total comments: 12

Patch Set 3 : Added SyncSocket for platform compatibility. Also made changes based on comments. #

Total comments: 10

Patch Set 4 : Modified as commented. #

Total comments: 5

Patch Set 5 : Modified as comment advised. #

Patch Set 6 : Add sandbox fix for broker on Win/Mac. #

Patch Set 7 : Resync to solve patching error. #

Patch Set 8 : Rebased. Accroding to 3f364cbe2565b02, added a string parameter to RunTests(). #

Patch Set 9 : Removed dependency on base. Test passed on Linux. Need to test on Windows and Mac. #

Patch Set 10 : Remove dependencies on "base". #

Patch Set 11 : Disable TestConnectAndPipe on Windows due to a bug on Win. #

Total comments: 30

Patch Set 12 : Modify based on code review comments. #

Total comments: 2

Patch Set 13 : Modify as commented. #

Total comments: 8

Patch Set 14 : Modified as commented. #

Total comments: 2

Patch Set 15 : Removed unnecessary fdopen as commented by piman. #

Patch Set 16 : Change #include "windows.h" to <windows.h> #

Patch Set 17 : Further removed all dependencies on src/base. #

Patch Set 18 : Remove the paranoid undef's. #

Patch Set 19 : Add !! before ::DeleteFile since BOOL is not bool. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+256 lines, -6 lines) Patch
M content/common/sandbox_init_mac.cc View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/common/sandbox_policy.cc View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/tests/test_broker.h View 1 2 3 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/tests/test_broker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +247 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
ddorwin
Looks good overall. Mostly nits. http://codereview.chromium.org/8400024/diff/1/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/1/ppapi/tests/test_broker.cc#newcode21 ppapi/tests/test_broker.cc:21: const size_t kTestMessageLength = ...
9 years, 1 month ago (2011-10-27 18:19:46 UTC) #1
xhwang
Mostly done. Don't quite understand this one: "> There is more testing of Connect and ...
9 years, 1 month ago (2011-10-27 22:31:57 UTC) #2
ddorwin
This won't compile on Windows. I think we can actually make it pass on Windows ...
9 years, 1 month ago (2011-10-27 23:21:23 UTC) #3
xhwang
Done as commented. Thanks for the great review! http://codereview.chromium.org/8400024/diff/4001/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/4001/ppapi/tests/test_broker.cc#newcode26 ppapi/tests/test_broker.cc:26: // ...
9 years, 1 month ago (2011-10-28 01:21:01 UTC) #4
ddorwin
Almost done :) http://codereview.chromium.org/8400024/diff/4/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/4/ppapi/tests/test_broker.cc#newcode142 ppapi/tests/test_broker.cc:142: ASSERT_TRUE (broker_interface_->IsBrokerTrusted(broker)); Remove space. http://codereview.chromium.org/8400024/diff/4/ppapi/tests/test_broker.cc#newcode163 ppapi/tests/test_broker.cc:163: ...
9 years, 1 month ago (2011-10-28 17:11:29 UTC) #5
xhwang
Done for most comments. I'd like to use TestConnectFailure and TestGetHandleFailure instead of *Fails because ...
9 years, 1 month ago (2011-10-28 18:18:28 UTC) #6
ddorwin
lgtm LGTM with nits. After addressing those and uploading, you can run "git try" to ...
9 years, 1 month ago (2011-10-28 19:05:59 UTC) #7
xhwang
http://codereview.chromium.org/8400024/diff/1005/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/1005/ppapi/tests/test_broker.cc#newcode85 ppapi/tests/test_broker.cc:85: sync_socket.Receive(message_received.get(), length); On 2011/10/28 19:05:59, ddorwin wrote: > Should ...
9 years, 1 month ago (2011-10-28 19:39:10 UTC) #8
xhwang
If look good to you, could you please help on the try bot again? Thanks!
9 years, 1 month ago (2011-10-29 03:29:01 UTC) #9
xhwang
Hello David, Just uploaded a new patch to remove the dependency on "src/base/..." files which ...
9 years, 1 month ago (2011-11-10 00:46:49 UTC) #10
xhwang
Hello David, Disabled TestConnectAndPipe() in Windows. Please review again. -xiaohan
9 years, 1 month ago (2011-11-12 01:17:04 UTC) #11
ddorwin
Thanks. LG overall. Mostly nits. http://codereview.chromium.org/8400024/diff/29001/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/29001/ppapi/tests/test_broker.cc#newcode56 ppapi/tests/test_broker.cc:56: const int32_t kInvalidHandle = ...
9 years, 1 month ago (2011-11-14 18:19:39 UTC) #12
xhwang
Mostly done as commented. Thanks! http://codereview.chromium.org/8400024/diff/29001/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/29001/ppapi/tests/test_broker.cc#newcode56 ppapi/tests/test_broker.cc:56: const int32_t kInvalidHandle = ...
9 years, 1 month ago (2011-11-14 22:24:30 UTC) #13
ddorwin
lgtm Now you can get OWNERS review and we'll try bot one more time after ...
9 years, 1 month ago (2011-11-14 22:34:50 UTC) #14
xhwang
Done. http://codereview.chromium.org/8400024/diff/29001/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/29001/ppapi/tests/test_broker.cc#newcode166 ppapi/tests/test_broker.cc:166: On 2011/11/14 22:34:50, ddorwin wrote: > On 2011/11/14 ...
9 years, 1 month ago (2011-11-14 22:50:19 UTC) #15
xhwang
Hello piman and brettw, Could you please do a OWNERS review on this change? This ...
9 years, 1 month ago (2011-11-14 22:57:41 UTC) #16
piman
http://codereview.chromium.org/8400024/diff/37002/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/37002/ppapi/tests/test_broker.cc#newcode20 ppapi/tests/test_broker.cc:20: #include "Windows.h" Should be written <windows.h> http://codereview.chromium.org/8400024/diff/37002/ppapi/tests/test_broker.cc#newcode62 ppapi/tests/test_broker.cc:62: ssize_t ...
9 years, 1 month ago (2011-11-14 23:49:17 UTC) #17
xhwang
Hello piman, Thanks for the great review. I didn't really think about these issues. Modified ...
9 years, 1 month ago (2011-11-15 01:52:49 UTC) #18
piman
http://codereview.chromium.org/8400024/diff/39001/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/39001/ppapi/tests/test_broker.cc#newcode139 ppapi/tests/test_broker.cc:139: file = ::fdopen(fd, "w"); I'd simplify it even further: ...
9 years, 1 month ago (2011-11-15 01:58:14 UTC) #19
xhwang
Changed as suggested. Thanks! http://codereview.chromium.org/8400024/diff/39001/ppapi/tests/test_broker.cc File ppapi/tests/test_broker.cc (right): http://codereview.chromium.org/8400024/diff/39001/ppapi/tests/test_broker.cc#newcode139 ppapi/tests/test_broker.cc:139: file = ::fdopen(fd, "w"); On ...
9 years, 1 month ago (2011-11-15 04:23:28 UTC) #20
piman
lgtm
9 years, 1 month ago (2011-11-15 04:46:04 UTC) #21
xhwang
Removed dependency on src/base completely. Also use #if defined(_MSC_VER) to distinguish between Windows and Posix ...
9 years, 1 month ago (2011-11-15 19:12:03 UTC) #22
piman
lgtm
9 years, 1 month ago (2011-11-15 19:23:13 UTC) #23
ddorwin
lgtm
9 years, 1 month ago (2011-11-15 22:18:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/8400024/41004
9 years, 1 month ago (2011-11-15 22:20:27 UTC) #25
commit-bot: I haz the power
Presubmit check for 8400024-41004 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 1 month ago (2011-11-15 22:20:31 UTC) #26
xhwang
Hello jam, I need your OWNERS review on the following two content/common files: content/common/sandbox_init_mac.cc content/common/sandbox_policy.cc ...
9 years, 1 month ago (2011-11-15 22:27:10 UTC) #27
jam
lgtm
9 years, 1 month ago (2011-11-16 00:26:37 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/8400024/41004
9 years, 1 month ago (2011-11-16 00:36:23 UTC) #29
commit-bot: I haz the power
9 years, 1 month ago (2011-11-16 01:58:34 UTC) #30
Change committed as 110241

Powered by Google App Engine
This is Rietveld 408576698