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

Side by Side Diff: app/text_elider_unittest.cc

Issue 1132006: Move app/gfx/canvas and app/gfx/font to gfx/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 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 | Annotate | Revision Log
« no previous file with comments | « app/text_elider.cc ('k') | app/win_util.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) 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/gfx/font.h"
6 #include "app/text_elider.h" 5 #include "app/text_elider.h"
7 #include "app/l10n_util.h" 6 #include "app/l10n_util.h"
8 #include "base/file_path.h" 7 #include "base/file_path.h"
9 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
10 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "gfx/font.h"
11 #include "googleurl/src/gurl.h" 11 #include "googleurl/src/gurl.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace { 14 namespace {
15 15
16 const wchar_t kEllipsis[] = L"\x2026"; 16 const wchar_t kEllipsis[] = L"\x2026";
17 17
18 struct Testcase { 18 struct Testcase {
19 const std::string input; 19 const std::string input;
20 const std::wstring output; 20 const std::wstring output;
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 { "http://www.a/", "http://b/", -1 }, 262 { "http://www.a/", "http://b/", -1 },
263 }; 263 };
264 264
265 for (size_t i = 0; i < arraysize(tests); ++i) { 265 for (size_t i = 0; i < arraysize(tests); ++i) {
266 gfx::SortedDisplayURL url1(GURL(tests[i].a), std::wstring()); 266 gfx::SortedDisplayURL url1(GURL(tests[i].a), std::wstring());
267 gfx::SortedDisplayURL url2(GURL(tests[i].b), std::wstring()); 267 gfx::SortedDisplayURL url2(GURL(tests[i].b), std::wstring());
268 EXPECT_EQ(tests[i].compare_result, url1.Compare(url2, collator.get())); 268 EXPECT_EQ(tests[i].compare_result, url1.Compare(url2, collator.get()));
269 EXPECT_EQ(-tests[i].compare_result, url2.Compare(url1, collator.get())); 269 EXPECT_EQ(-tests[i].compare_result, url2.Compare(url1, collator.get()));
270 } 270 }
271 } 271 }
OLDNEW
« no previous file with comments | « app/text_elider.cc ('k') | app/win_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698