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

Side by Side Diff: ui/gfx/ios/NSString+CrStringDrawing_unittest.mm

Issue 983413004: Eliminate ui/ios (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « ui/gfx/ios/NSString+CrStringDrawing.mm ('k') | ui/gfx/ios/OWNERS » ('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 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
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
OLDNEW
« no previous file with comments | « ui/gfx/ios/NSString+CrStringDrawing.mm ('k') | ui/gfx/ios/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698