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

Side by Side Diff: sandbox/linux/bpf_dsl/test_trap_registry_unittest.cc

Issue 1538283002: Switch to standard integer types in sandbox/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: macros 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 | « sandbox/linux/bpf_dsl/test_trap_registry.cc ('k') | sandbox/linux/bpf_dsl/verifier.cc » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/linux/bpf_dsl/test_trap_registry.h" 5 #include "sandbox/linux/bpf_dsl/test_trap_registry.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/macros.h"
9 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
10 11
11 namespace sandbox { 12 namespace sandbox {
12 namespace bpf_dsl { 13 namespace bpf_dsl {
13 namespace { 14 namespace {
14 15
15 intptr_t TestTrapFuncOne(const arch_seccomp_data& data, void* aux) { 16 intptr_t TestTrapFuncOne(const arch_seccomp_data& data, void* aux) {
16 return 1; 17 return 1;
17 } 18 }
18 19
(...skipping 20 matching lines...) Expand all
39 for (size_t j = 0; j < arraysize(funcs); ++j) { 40 for (size_t j = 0; j < arraysize(funcs); ++j) {
40 // Trap IDs start at 1. 41 // Trap IDs start at 1.
41 EXPECT_EQ(j + 1, traps.Add(funcs[j].fnc, funcs[j].aux, true)); 42 EXPECT_EQ(j + 1, traps.Add(funcs[j].fnc, funcs[j].aux, true));
42 } 43 }
43 } 44 }
44 } 45 }
45 46
46 } // namespace 47 } // namespace
47 } // namespace bpf_dsl 48 } // namespace bpf_dsl
48 } // namespace sandbox 49 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/linux/bpf_dsl/test_trap_registry.cc ('k') | sandbox/linux/bpf_dsl/verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698