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

Side by Side Diff: mojo/public/c/system/tests/core_unittest_pure_c.c

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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
« no previous file with comments | « mojo/public/c/system/tests/core_unittest.cc ('k') | mojo/public/c/system/wait_set.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 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 #ifdef __cplusplus 5 #ifdef __cplusplus
6 #error "This file should be compiled as C, not C++." 6 #error "This file should be compiled as C, not C++."
7 #endif 7 #endif
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdint.h>
10 #include <string.h> 11 #include <string.h>
11 12
12 // Include all the header files that are meant to be compilable as C. Start with 13 // Include all the header files that are meant to be compilable as C. Start with
13 // core.h, since it's the most important one. 14 // core.h, since it's the most important one.
14 #include "mojo/public/c/environment/async_waiter.h" 15 #include "mojo/public/c/environment/async_waiter.h"
15 #include "mojo/public/c/system/core.h" 16 #include "mojo/public/c/system/core.h"
16 #include "mojo/public/c/system/macros.h" 17 #include "mojo/public/c/system/macros.h"
17 18
18 // The joys of the C preprocessor.... 19 // The joys of the C preprocessor....
19 #define STRINGIFY(x) #x 20 #define STRINGIFY(x) #x
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 EXPECT_EQ((uint32_t)sizeof(kHello), num_bytes); 95 EXPECT_EQ((uint32_t)sizeof(kHello), num_bytes);
95 EXPECT_EQ(0, memcmp(buffer, kHello, sizeof(kHello))); 96 EXPECT_EQ(0, memcmp(buffer, kHello, sizeof(kHello)));
96 97
97 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(handle0)); 98 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(handle0));
98 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(handle1)); 99 EXPECT_EQ(MOJO_RESULT_OK, MojoClose(handle1));
99 100
100 // TODO(vtl): data pipe 101 // TODO(vtl): data pipe
101 102
102 return NULL; 103 return NULL;
103 } 104 }
OLDNEW
« no previous file with comments | « mojo/public/c/system/tests/core_unittest.cc ('k') | mojo/public/c/system/wait_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698