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

Side by Side Diff: testing/gtest_mac.h

Issue 1155623002: Added CGFloat comparison functions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Include gtest_mac.h from callers instead of adding it to ui_cocoa_test_helper.h Created 5 years, 6 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
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller_unittest.mm ('k') | ui/gfx/test/ui_cocoa_test_helper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef TESTING_GTEST_MAC_H_ 5 #ifndef TESTING_GTEST_MAC_H_
6 #define TESTING_GTEST_MAC_H_ 6 #define TESTING_GTEST_MAC_H_
7 7
8 #include <gtest/internal/gtest-port.h> 8 #include <gtest/internal/gtest-port.h>
9 #include <gtest/gtest.h> 9 #include <gtest/gtest.h>
10 10
(...skipping 25 matching lines...) Expand all
36 #define EXPECT_NSEQ(expected, actual) \ 36 #define EXPECT_NSEQ(expected, actual) \
37 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNSEQ, expected, actual) 37 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNSEQ, expected, actual)
38 #define EXPECT_NSNE(val1, val2) \ 38 #define EXPECT_NSNE(val1, val2) \
39 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNSNE, val1, val2) 39 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNSNE, val1, val2)
40 40
41 #define ASSERT_NSEQ(expected, actual) \ 41 #define ASSERT_NSEQ(expected, actual) \
42 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNSEQ, expected, actual) 42 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNSEQ, expected, actual)
43 #define ASSERT_NSNE(val1, val2) \ 43 #define ASSERT_NSNE(val1, val2) \
44 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNSNE, val1, val2) 44 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNSNE, val1, val2)
45 45
46 // Tests CGFloat equality.
47 #if CGFLOAT_IS_DOUBLE
48 #define EXPECT_CGFLOAT_EQ(expected, actual) EXPECT_DOUBLE_EQ(expected, actual)
49 #define ASSERT_CGFLOAT_EQ(expected, actual) ASSERT_DOUBLE_EQ(expected, actual)
50 #else
51 #define EXPECT_CGFLOAT_EQ(expected, actual) EXPECT_FLOAT_EQ(expected, actual)
52 #define ASSERT_CGFLOAT_EQ(expected, actual) ASSERT_FLOAT_EQ(expected, actual)
53 #endif // CGFLOAT_IS_DOUBLE
54
46 #endif // GTEST_OS_MAC 55 #endif // GTEST_OS_MAC
47 56
48 #endif // TESTING_GTEST_MAC_H_ 57 #endif // TESTING_GTEST_MAC_H_
OLDNEW
« no previous file with comments | « ios/web/web_state/ui/crw_web_controller_unittest.mm ('k') | ui/gfx/test/ui_cocoa_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698