OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "gtest_mac.h" | 5 #import "gtest_mac.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
| 9 #include <gtest/gtest.h> |
9 #include <gtest/internal/gtest-port.h> | 10 #include <gtest/internal/gtest-port.h> |
10 #include <gtest/internal/gtest-string.h> | 11 #include <gtest/internal/gtest-string.h> |
11 #include <gtest/gtest.h> | |
12 | 12 |
13 #ifdef GTEST_OS_MAC | 13 #ifdef GTEST_OS_MAC |
14 | 14 |
15 #import <Foundation/Foundation.h> | 15 #import <Foundation/Foundation.h> |
16 | 16 |
17 namespace testing { | 17 namespace testing { |
18 namespace internal { | 18 namespace internal { |
19 | 19 |
20 // Handles nil values for |obj| properly by using safe printing of %@ in | 20 // Handles nil values for |obj| properly by using safe printing of %@ in |
21 // -stringWithFormat:. | 21 // -stringWithFormat:. |
(...skipping 30 matching lines...) Expand all Loading... |
52 msg << "Expected: (" << expected_expression << ") != (" << actual_expression | 52 msg << "Expected: (" << expected_expression << ") != (" << actual_expression |
53 << "), actual: " << StringDescription(expected) | 53 << "), actual: " << StringDescription(expected) |
54 << " vs " << StringDescription(actual); | 54 << " vs " << StringDescription(actual); |
55 return AssertionFailure(msg); | 55 return AssertionFailure(msg); |
56 } | 56 } |
57 | 57 |
58 } // namespace internal | 58 } // namespace internal |
59 } // namespace testing | 59 } // namespace testing |
60 | 60 |
61 #endif // GTEST_OS_MAC | 61 #endif // GTEST_OS_MAC |
OLD | NEW |