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

Side by Side Diff: chrome/views/controls/label_unittest.cc

Issue 109043: Move l10n_util to app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/views/controls/label.cc ('k') | chrome/views/controls/menu/chrome_menu.cc » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "app/l10n_util.h"
5 #include "base/string_util.h" 6 #include "base/string_util.h"
6 #include "chrome/common/gfx/chrome_canvas.h" 7 #include "chrome/common/gfx/chrome_canvas.h"
7 #include "chrome/common/l10n_util.h"
8 #include "chrome/views/border.h" 8 #include "chrome/views/border.h"
9 #include "chrome/views/controls/label.h" 9 #include "chrome/views/controls/label.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 // All text sizing measurements (width and height) should be greater than this. 14 // All text sizing measurements (width and height) should be greater than this.
15 const int kMinTextDimension = 4; 15 const int kMinTextDimension = 4;
16 16
17 TEST(LabelTest, FontProperty) { 17 TEST(LabelTest, FontProperty) {
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags); 432 label.CalculateDrawStringParams(&paint_text, &text_bounds, &flags);
433 EXPECT_STREQ(test_text.c_str(), paint_text.c_str()); 433 EXPECT_STREQ(test_text.c_str(), paint_text.c_str());
434 EXPECT_EQ(center_bounds.x() + border.left(), text_bounds.x()); 434 EXPECT_EQ(center_bounds.x() + border.left(), text_bounds.x());
435 EXPECT_EQ(center_bounds.y() + border.top(), text_bounds.y()); 435 EXPECT_EQ(center_bounds.y() + border.top(), text_bounds.y());
436 EXPECT_EQ(center_bounds.width(), text_bounds.width()); 436 EXPECT_EQ(center_bounds.width(), text_bounds.width());
437 EXPECT_EQ(center_bounds.height(), text_bounds.height()); 437 EXPECT_EQ(center_bounds.height(), text_bounds.height());
438 EXPECT_EQ(ChromeCanvas::MULTI_LINE | ChromeCanvas::TEXT_ALIGN_CENTER, flags); 438 EXPECT_EQ(ChromeCanvas::MULTI_LINE | ChromeCanvas::TEXT_ALIGN_CENTER, flags);
439 } 439 }
440 440
441 } // namespace views 441 } // namespace views
OLDNEW
« no previous file with comments | « chrome/views/controls/label.cc ('k') | chrome/views/controls/menu/chrome_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698