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

Side by Side Diff: base/security_unittest.cc

Issue 1538743002: Switch to standard integer types in base/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: DEPS roll too Created 4 years, 12 months 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
« no previous file with comments | « base/scoped_observer.h ('k') | base/sequence_checker_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 <fcntl.h> 5 #include <fcntl.h>
6 #include <stddef.h>
6 #include <stdio.h> 7 #include <stdio.h>
7 #include <stdlib.h> 8 #include <stdlib.h>
8 #include <string.h> 9 #include <string.h>
9 #include <sys/stat.h> 10 #include <sys/stat.h>
10 #include <sys/types.h> 11 #include <sys/types.h>
11 12
12 #include <algorithm> 13 #include <algorithm>
13 #include <limits> 14 #include <limits>
14 15
15 #include "base/files/file_util.h" 16 #include "base/files/file_util.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // kRandomMask, so we use it as an additional detection mechanism. 176 // kRandomMask, so we use it as an additional detection mechanism.
176 const uintptr_t kRandomMask = 0x3fffffffffffULL; 177 const uintptr_t kRandomMask = 0x3fffffffffffULL;
177 bool impossible_random_address = 178 bool impossible_random_address =
178 reinterpret_cast<uintptr_t>(ptr.get()) & ~kRandomMask; 179 reinterpret_cast<uintptr_t>(ptr.get()) & ~kRandomMask;
179 EXPECT_FALSE(impossible_random_address); 180 EXPECT_FALSE(impossible_random_address);
180 } 181 }
181 182
182 #endif // defined(OS_LINUX) && defined(__x86_64__) 183 #endif // defined(OS_LINUX) && defined(__x86_64__)
183 184
184 } // namespace 185 } // namespace
OLDNEW
« no previous file with comments | « base/scoped_observer.h ('k') | base/sequence_checker_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698