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

Issue 148223005: [NaCl SDK] Add fake for ppb_host_resolver and ppb_net_address (Closed)

Created:
6 years, 10 months ago by Sam Clegg
Modified:
6 years, 10 months ago
Reviewers:
binji
CC:
chromium-reviews, binji
Visibility:
Public.

Description

[NaCl SDK] Add fake for ppb_host_resolver and ppb_net_address Also add tests for gethostbyname that usese these fakes and fix the resulting leaks found in host_resolver.cc. Also add a third variant of ki_init() which takes a PepperInterface instance. This can be used by the test code to inject a fake pepper interface. R=binji@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247487

Patch Set 1 #

Patch Set 2 : #

Total comments: 26

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+438 lines, -40 lines) Patch
M native_client_sdk/src/libraries/nacl_io/host_resolver.cc View 1 2 4 chunks +20 lines, -13 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.h View 1 2 4 chunks +23 lines, -11 lines 0 comments Download
M native_client_sdk/src/libraries/nacl_io/kernel_intercept.cc View 1 2 chunks +8 lines, -4 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/example.dsc View 2 chunks +5 lines, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_core_interface.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_core_interface.cc View 1 chunk +4 lines, -3 lines 0 comments Download
A native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_host_resolver_interface.h View 1 2 1 chunk +43 lines, -0 lines 0 comments Download
A native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_host_resolver_interface.cc View 1 2 1 chunk +98 lines, -0 lines 0 comments Download
A native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_net_address_interface.h View 1 chunk +34 lines, -0 lines 0 comments Download
A native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_net_address_interface.cc View 1 2 1 chunk +88 lines, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface.h View 2 chunks +15 lines, -1 line 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface.cc View 2 chunks +34 lines, -2 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_html5_fs.h View 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_html5_fs.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_url_loader.h View 1 chunk +1 line, -0 lines 0 comments Download
M native_client_sdk/src/tests/nacl_io_test/fake_ppapi/fake_pepper_interface_url_loader.cc View 1 chunk +2 lines, -1 line 0 comments Download
A native_client_sdk/src/tests/nacl_io_test/host_resolver_test.cc View 1 2 1 chunk +55 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Sam Clegg
6 years, 10 months ago (2014-01-28 17:32:36 UTC) #1
Sam Clegg
6 years, 10 months ago (2014-01-28 17:48:36 UTC) #2
binji
lgtm, w/ some comments and nits https://codereview.chromium.org/148223005/diff/20001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc File native_client_sdk/src/libraries/nacl_io/host_resolver.cc (right): https://codereview.chromium.org/148223005/diff/20001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc#newcode140 native_client_sdk/src/libraries/nacl_io/host_resolver.cc:140: ppapi_->ReleaseResource(addr); You can ...
6 years, 10 months ago (2014-01-28 18:13:22 UTC) #3
Sam Clegg
https://codereview.chromium.org/148223005/diff/20001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc File native_client_sdk/src/libraries/nacl_io/host_resolver.cc (right): https://codereview.chromium.org/148223005/diff/20001/native_client_sdk/src/libraries/nacl_io/host_resolver.cc#newcode140 native_client_sdk/src/libraries/nacl_io/host_resolver.cc:140: ppapi_->ReleaseResource(addr); On 2014/01/28 18:13:22, binji wrote: > You can ...
6 years, 10 months ago (2014-01-28 19:55:22 UTC) #4
Sam Clegg
6 years, 10 months ago (2014-01-28 19:57:39 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 manually as r247487 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698