OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 tests the C API. | 5 // This file tests the C API. |
6 | 6 |
7 #include "mojo/public/c/system/core.h" | 7 #include "mojo/public/c/system/core.h" |
8 | 8 |
| 9 #include <stdint.h> |
9 #include <string.h> | 10 #include <string.h> |
10 | 11 |
11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
12 | 13 |
13 namespace mojo { | 14 namespace mojo { |
14 namespace { | 15 namespace { |
15 | 16 |
16 const MojoHandleSignals kSignalReadadableWritable = | 17 const MojoHandleSignals kSignalReadadableWritable = |
17 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; | 18 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; |
18 | 19 |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 // This checks that things actually work in C (not C++). | 331 // This checks that things actually work in C (not C++). |
331 TEST(CoreTest, MinimalCTest) { | 332 TEST(CoreTest, MinimalCTest) { |
332 const char* failure = MinimalCTest(); | 333 const char* failure = MinimalCTest(); |
333 EXPECT_FALSE(failure) << failure; | 334 EXPECT_FALSE(failure) << failure; |
334 } | 335 } |
335 | 336 |
336 // TODO(vtl): Add multi-threaded tests. | 337 // TODO(vtl): Add multi-threaded tests. |
337 | 338 |
338 } // namespace | 339 } // namespace |
339 } // namespace mojo | 340 } // namespace mojo |
OLD | NEW |