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 #import "ui/ios/NSString+CrStringDrawing.h" | 4 #import "ui/gfx/ios/NSString+CrStringDrawing.h" |
5 | 5 |
6 #include "base/mac/scoped_nsobject.h" | 6 #include "base/mac/scoped_nsobject.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "testing/platform_test.h" | 10 #include "testing/platform_test.h" |
11 | 11 |
12 namespace { | 12 namespace { |
13 | 13 |
14 typedef PlatformTest NSStringCrStringDrawing; | 14 typedef PlatformTest NSStringCrStringDrawing; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // Verify that the pixel-aligned value is pixel-aligned. | 142 // Verify that the pixel-aligned value is pixel-aligned. |
143 EXPECT_FLOAT_EQ(roundf(size_with_pixel_aligned.width * scale), | 143 EXPECT_FLOAT_EQ(roundf(size_with_pixel_aligned.width * scale), |
144 size_with_pixel_aligned.width * scale) << test_tag; | 144 size_with_pixel_aligned.width * scale) << test_tag; |
145 EXPECT_FLOAT_EQ(roundf(size_with_pixel_aligned.height * scale), | 145 EXPECT_FLOAT_EQ(roundf(size_with_pixel_aligned.height * scale), |
146 size_with_pixel_aligned.height * scale) << test_tag; | 146 size_with_pixel_aligned.height * scale) << test_tag; |
147 } | 147 } |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 } // namespace | 151 } // namespace |
OLD | NEW |