| 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 "third_party/mojo/src/mojo/public/c/system/core.h" | 7 #include "mojo/public/c/system/core.h" |
| 8 | 8 |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 | 12 |
| 13 namespace mojo { | 13 namespace mojo { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 const MojoHandleSignals kSignalReadadableWritable = | 16 const MojoHandleSignals kSignalReadadableWritable = |
| 17 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; | 17 MOJO_HANDLE_SIGNAL_READABLE | MOJO_HANDLE_SIGNAL_WRITABLE; |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 // This checks that things actually work in C (not C++). | 339 // This checks that things actually work in C (not C++). |
| 340 TEST(CoreTest, MinimalCTest) { | 340 TEST(CoreTest, MinimalCTest) { |
| 341 const char* failure = MinimalCTest(); | 341 const char* failure = MinimalCTest(); |
| 342 EXPECT_FALSE(failure) << failure; | 342 EXPECT_FALSE(failure) << failure; |
| 343 } | 343 } |
| 344 | 344 |
| 345 // TODO(vtl): Add multi-threaded tests. | 345 // TODO(vtl): Add multi-threaded tests. |
| 346 | 346 |
| 347 } // namespace | 347 } // namespace |
| 348 } // namespace mojo | 348 } // namespace mojo |
| OLD | NEW |