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

Side by Side Diff: sandbox/mac/xpc_message_server_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/mac/xpc_message_server.h ('k') | sandbox/mac/xpc_stubs_header.fragment » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/mac/xpc_message_server.h" 5 #include "sandbox/mac/xpc_message_server.h"
6 6
7 #include <Block.h> 7 #include <Block.h>
8 #include <mach/mach.h> 8 #include <mach/mach.h>
9 #include <servers/bootstrap.h> 9 #include <servers/bootstrap.h>
10 #include <stdint.h>
10 11
11 #include "base/command_line.h" 12 #include "base/command_line.h"
12 #include "base/logging.h" 13 #include "base/logging.h"
13 #include "base/mac/mac_util.h" 14 #include "base/mac/mac_util.h"
14 #include "base/mac/scoped_mach_port.h" 15 #include "base/mac/scoped_mach_port.h"
15 #include "base/process/kill.h" 16 #include "base/process/kill.h"
16 #include "base/test/multiprocess_test.h" 17 #include "base/test/multiprocess_test.h"
17 #include "sandbox/mac/xpc.h" 18 #include "sandbox/mac/xpc.h"
18 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
19 #include "testing/multiprocess_func_list.h" 20 #include "testing/multiprocess_func_list.h"
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 ASSERT_EQ(0, xpc_pipe_routine(first.pipe(), request, &reply)); 223 ASSERT_EQ(0, xpc_pipe_routine(first.pipe(), request, &reply));
223 224
224 EXPECT_EQ(1, xpc_dictionary_get_int64(reply, "seen_by_first")); 225 EXPECT_EQ(1, xpc_dictionary_get_int64(reply, "seen_by_first"));
225 EXPECT_EQ(2, xpc_dictionary_get_int64(reply, "seen_by_second")); 226 EXPECT_EQ(2, xpc_dictionary_get_int64(reply, "seen_by_second"));
226 227
227 xpc_release(request); 228 xpc_release(request);
228 xpc_release(reply); 229 xpc_release(reply);
229 } 230 }
230 231
231 } // namespace sandbox 232 } // namespace sandbox
OLDNEW
« no previous file with comments | « sandbox/mac/xpc_message_server.h ('k') | sandbox/mac/xpc_stubs_header.fragment » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698