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

Side by Side Diff: sandbox/win/tests/common/test_utils.cc

Issue 1539423002: Revert of Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "sandbox/win/tests/common/test_utils.h" 5 #include "sandbox/win/tests/common/test_utils.h"
6 6
7 #include <stddef.h>
8 #include <winioctl.h> 7 #include <winioctl.h>
9 8
10 typedef struct _REPARSE_DATA_BUFFER { 9 typedef struct _REPARSE_DATA_BUFFER {
11 ULONG ReparseTag; 10 ULONG ReparseTag;
12 USHORT ReparseDataLength; 11 USHORT ReparseDataLength;
13 USHORT Reserved; 12 USHORT Reserved;
14 union { 13 union {
15 struct { 14 struct {
16 USHORT SubstituteNameOffset; 15 USHORT SubstituteNameOffset;
17 USHORT SubstituteNameLength; 16 USHORT SubstituteNameLength;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 DWORD returned; 63 DWORD returned;
65 REPARSE_DATA_BUFFER data = {0}; 64 REPARSE_DATA_BUFFER data = {0};
66 data.ReparseTag = 0xa0000003; 65 data.ReparseTag = 0xa0000003;
67 if (!DeviceIoControl(source, FSCTL_DELETE_REPARSE_POINT, &data, 8, NULL, 0, 66 if (!DeviceIoControl(source, FSCTL_DELETE_REPARSE_POINT, &data, 8, NULL, 0,
68 &returned, NULL)) { 67 &returned, NULL)) {
69 return false; 68 return false;
70 } 69 }
71 70
72 return true; 71 return true;
73 } 72 }
OLDNEW
« no previous file with comments | « sandbox/win/src/win_utils.cc ('k') | sandbox/win/tests/integration_tests/integration_tests_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698