Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(4472)

Issue 75170044: FSA Add WindowsAclFileAttributeViewsTest (Part 1) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 1 month ago by Brett
Modified:
10 years, 1 month ago
Reviewers:
pjo, mifern
CC:
connector-cr_google.com
Visibility:
Public.

Description

This adds WindowsAclFileAttributeViewsTest that only tests the newAclEntry() method.

Patch Set 1 #

Total comments: 8

Patch Set 2 : PJ's feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -3 lines) Patch
M src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java View 3 chunks +7 lines, -2 lines 0 comments Download
M src/com/google/enterprise/adaptor/fs/WindowsFileDelegate.java View 1 1 chunk +1 line, -1 line 0 comments Download
A test/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViewsTest.java View 1 1 chunk +325 lines, -0 lines 2 comments Download

Messages

Total messages: 6
Brett
10 years, 1 month ago (2014-03-13 04:11:59 UTC) #1
pjo
Thank you. https://codereview.appspot.com/75170044/diff/1/src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java File src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java (right): https://codereview.appspot.com/75170044/diff/1/src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java#newcode391 src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java:391: Account getAccountBySid(WinNT.PSID sid) throws Win32Exception { make ...
10 years, 1 month ago (2014-03-13 06:09:28 UTC) #2
Brett
PJ's feedback
10 years, 1 month ago (2014-03-13 16:23:38 UTC) #3
Brett
https://codereview.appspot.com/75170044/diff/1/src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java File src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java (right): https://codereview.appspot.com/75170044/diff/1/src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java#newcode391 src/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViews.java:391: Account getAccountBySid(WinNT.PSID sid) throws Win32Exception { On 2014/03/13 06:09:28, ...
10 years, 1 month ago (2014-03-13 16:24:05 UTC) #4
pjo
Thank you. LGTM. https://codereview.appspot.com/75170044/diff/20001/test/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViewsTest.java File test/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViewsTest.java (right): https://codereview.appspot.com/75170044/diff/20001/test/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViewsTest.java#newcode301 test/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViewsTest.java:301: throw new Win32Exception(WinError.ERROR_NONE_MAPPED); check for null ...
10 years, 1 month ago (2014-03-13 16:34:15 UTC) #5
Brett
10 years, 1 month ago (2014-03-13 18:44:16 UTC) #6
Committed 13 March 2014 to File System Adaptor:
To https://code.google.com/p/plexi.fs/
   d73320b..93a8248  master -> master

https://codereview.appspot.com/75170044/diff/20001/test/com/google/enterprise...
File test/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViewsTest.java
(right):

https://codereview.appspot.com/75170044/diff/20001/test/com/google/enterprise...
test/com/google/enterprise/adaptor/fs/WindowsAclFileAttributeViewsTest.java:301:
throw new Win32Exception(WinError.ERROR_NONE_MAPPED);
On 2014/03/13 16:34:16, pjo wrote:
> check for null in ctor instead?

No.  This code path is used by the test for unresolvable SID.
Lookup of an unresolvable SID throws ERROR_NONE_MAPPED.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b