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

Side by Side Diff: mojo/public/c/system/tests/compile_unittest_pure_cpp.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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // This file is used to ensure that our C headers can be compiled as C++ with 5 // This file is used to ensure that our C headers can be compiled as C++ with
6 // more stringent warnings, in particular with "-Wundef". 6 // more stringent warnings, in particular with "-Wundef".
7 7
8 // Include all the header files that are meant to be compilable as C. 8 // Include all the header files that are meant to be compilable as C.
9 #include <mojo/macros.h>
10
11 // Include all the header files that are meant to be compilable as C.
9 #include "mojo/public/c/environment/async_waiter.h" 12 #include "mojo/public/c/environment/async_waiter.h"
10 #include "mojo/public/c/environment/logger.h" 13 #include "mojo/public/c/environment/logger.h"
11 #include "mojo/public/c/system/buffer.h" 14 #include "mojo/public/c/system/buffer.h"
12 #include "mojo/public/c/system/data_pipe.h" 15 #include "mojo/public/c/system/data_pipe.h"
13 #include "mojo/public/c/system/handle.h" 16 #include "mojo/public/c/system/handle.h"
14 #include "mojo/public/c/system/macros.h"
15 #include "mojo/public/c/system/main.h" 17 #include "mojo/public/c/system/main.h"
16 #include "mojo/public/c/system/message_pipe.h" 18 #include "mojo/public/c/system/message_pipe.h"
17 #include "mojo/public/c/system/result.h" 19 #include "mojo/public/c/system/result.h"
18 #include "mojo/public/c/system/time.h" 20 #include "mojo/public/c/system/time.h"
19 #include "mojo/public/c/system/wait.h" 21 #include "mojo/public/c/system/wait.h"
20 #include "mojo/public/c/system/wait_set.h" 22 #include "mojo/public/c/system/wait_set.h"
21 23
22 // We don't actually want to test anything; we just want to make sure that this 24 // We don't actually want to test anything; we just want to make sure that this
23 // file is compiled/linked in (this function is called from core_unittest.cc). 25 // file is compiled/linked in (this function is called from core_unittest.cc).
24 const char* MinimalCppTest() { 26 const char* MinimalCppTest() {
25 return nullptr; 27 return nullptr;
26 } 28 }
OLDNEW
« no previous file with comments | « mojo/public/c/system/tests/compile_unittest_pure_c.c ('k') | mojo/public/c/system/tests/macros_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698