| OLD | NEW |
| 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 // This file tests the C Mojo system macros and consists of "positive" tests, | 5 // This file tests the C Mojo system macros and consists of "positive" tests, |
| 6 // i.e., those verifying that things work (without compile errors, or even | 6 // i.e., those verifying that things work (without compile errors, or even |
| 7 // warnings if warnings are treated as errors). | 7 // warnings if warnings are treated as errors). |
| 8 // TODO(vtl): Fix no-compile tests (which are all disabled; crbug.com/105388) | 8 // TODO(vtl): Fix no-compile tests (which are all disabled; crbug.com/105388) |
| 9 // and write some "negative" tests. | 9 // and write some "negative" tests. |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 bad_compile_assert_failure_in_global_scope); | 39 bad_compile_assert_failure_in_global_scope); |
| 40 | 40 |
| 41 TEST(MacrosTest, CompileAssert) { | 41 TEST(MacrosTest, CompileAssert) { |
| 42 // Then in a local scope. | 42 // Then in a local scope. |
| 43 MOJO_COMPILE_ASSERT(sizeof(int32_t) == 2 * sizeof(int16_t), | 43 MOJO_COMPILE_ASSERT(sizeof(int32_t) == 2 * sizeof(int16_t), |
| 44 bad_compile_assert_failure); | 44 bad_compile_assert_failure); |
| 45 } | 45 } |
| 46 | 46 |
| 47 } // namespace | 47 } // namespace |
| 48 } // namespace mojo | 48 } // namespace mojo |
| OLD | NEW |