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

Issue 736443002: SocketDescriptor should not be used as a boolean (Closed)

Created:
6 years, 1 month ago by Chris Masone
Modified:
6 years, 1 month ago
Reviewers:
DaveMoore, jam, jamesr
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

SocketDescriptor should not be used as a boolean In UnixDomainServerSocketTest.AcceptWithForbiddenUser, a SocketDescriptor value was being tested as a boolean, which shouldn't happen. Instead, compare to kInvalidSocket. Also, build trivial external_application_unittests on Windows. BUG=None TEST=mojob.py test R=jam@chromium.org, davemoore, jam Committed: https://chromium.googlesource.com/external/mojo/+/b8ee9fe1beee80d0bb0ee9bd24e78dba917597d2

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -9 lines) Patch
M mojo/BUILD.gn View 1 chunk +1 line, -6 lines 0 comments Download
M mojo/shell/domain_socket/unix_domain_server_socket_posix_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (1 generated)
Chris Masone
PTAL. This fixes the currently failing tests.
6 years, 1 month ago (2014-11-17 18:10:56 UTC) #1
jam
lgtm
6 years, 1 month ago (2014-11-17 19:01:26 UTC) #2
Chris Masone
Committed patchset #1 (id:1) manually as b8ee9fe1beee80d0bb0ee9bd24e78dba917597d2 (presubmit successful).
6 years, 1 month ago (2014-11-17 19:17:21 UTC) #3
jamesr
This doesn't build either: [2542/5587] CXX obj/mojo/services/public/cpp/view_manager/lib/view_manager.view_manager_client_factory.obj FAILED: E:/b/depot_tools/python276_bin/python.exe gyp-win-tool link-wrapper environment.x64 False link.exe /nologo ...
6 years, 1 month ago (2014-11-17 21:19:15 UTC) #5
Chris Masone
6 years, 1 month ago (2014-11-17 21:21:23 UTC) #6
Message was sent while issue was closed.
On 2014/11/17 21:19:15, jamesr wrote:
> This doesn't build either:
> 
> [2542/5587] CXX
>
obj/mojo/services/public/cpp/view_manager/lib/view_manager.view_manager_client_factory.obj
> FAILED: E:/b/depot_tools/python276_bin/python.exe gyp-win-tool link-wrapper
> environment.x64 False link.exe /nologo /OUT:external_application_unittests.exe
> /PDB:external_application_unittests.exe.pdb
> @external_application_unittests.exe.rsp
> external_application_unittests.external_application_test_main.obj : error
> LNK2019: unresolved external symbol "void __cdecl mojo::embedder::Init(class
> scoped_ptr<class mojo::embedder::PlatformSupport,struct
> base::DefaultDeleter<class mojo::embedder::PlatformSupport> >)"
>
(?Init@embedder@mojo@@YAXV?$scoped_ptr@VPlatformSupport@embedder@mojo@@U?$DefaultDeleter@VPlatformSupport@embedder@mojo@@@base@@@@@Z)
> referenced in function main
> 
> 
> does it make any sense to build this on windows?  The whole external
application
> connection mechanism is based on POSIX domain sockets and we have no use case
> for this on windows (afaik)

It doesn't, no. But mojob.py doesn't grok platform-specific unit tests, as the
previous CL unintentionally revealed :-)

We've already had a regression due to these tests not being run. I'm open to
suggestions. This course of action (empty test binary on unsupported platform)
is what Trung suggested when I asked him for advice on Friday.

Powered by Google App Engine
This is Rietveld 408576698