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

Side by Side Diff: mojo/edk/system/memory_unittest.cc

Issue 2229573002: Change the canonical way to include the C macros.h to <mojo/macros.h>. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 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 | « mojo/edk/system/memory.h ('k') | mojo/edk/system/options_validation_unittest.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 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 "mojo/edk/system/memory.h" 5 #include "mojo/edk/system/memory.h"
6 6
7 #include <mojo/macros.h>
7 #include <stddef.h> 8 #include <stddef.h>
8 #include <stdint.h> 9 #include <stdint.h>
9 10
10 #include <limits> 11 #include <limits>
11 12
12 #include "mojo/public/c/system/macros.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 14
15 namespace mojo { 15 namespace mojo {
16 namespace system { 16 namespace system {
17 namespace { 17 namespace {
18 18
19 TEST(MemoryTest, Valid) { 19 TEST(MemoryTest, Valid) {
20 char my_char; 20 char my_char;
21 int32_t my_int32; 21 int32_t my_int32;
22 int64_t my_int64_array[5] = {}; // Zero initialize. 22 int64_t my_int64_array[5] = {}; // Zero initialize.
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 EXPECT_DEATH_IF_SUPPORTED(ptr.GetArray(&x, kTooBig), 285 EXPECT_DEATH_IF_SUPPORTED(ptr.GetArray(&x, kTooBig),
286 kMemoryCheckFailedRegex); 286 kMemoryCheckFailedRegex);
287 } 287 }
288 288
289 // TODO(vtl): Tests for |UserPointer{Reader,Writer,ReaderWriter}|. 289 // TODO(vtl): Tests for |UserPointer{Reader,Writer,ReaderWriter}|.
290 } 290 }
291 291
292 } // namespace 292 } // namespace
293 } // namespace system 293 } // namespace system
294 } // namespace mojo 294 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/edk/system/memory.h ('k') | mojo/edk/system/options_validation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698