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

Side by Side Diff: app/gfx/text_elider_unittest.cc

Issue 183008: Avoids the use of "namespace using-directives" in a few places.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: with gfx:: Created 11 years, 3 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 | « no previous file | net/disk_cache/disk_cache_test_util.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/gfx/font.h" 5 #include "app/gfx/font.h"
6 #include "app/gfx/text_elider.h" 6 #include "app/gfx/text_elider.h"
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using namespace gfx;
13
14 namespace { 12 namespace {
15 13
16 const wchar_t kEllipsis[] = L"\x2026"; 14 const wchar_t kEllipsis[] = L"\x2026";
17 15
18 struct Testcase { 16 struct Testcase {
19 const std::string input; 17 const std::string input;
20 const std::wstring output; 18 const std::wstring output;
21 }; 19 };
22 20
23 struct FileTestcase { 21 struct FileTestcase {
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 { "http://www.a/", "http://b/", -1 }, 259 { "http://www.a/", "http://b/", -1 },
262 }; 260 };
263 261
264 for (size_t i = 0; i < arraysize(tests); ++i) { 262 for (size_t i = 0; i < arraysize(tests); ++i) {
265 gfx::SortedDisplayURL url1(GURL(tests[i].a), std::wstring()); 263 gfx::SortedDisplayURL url1(GURL(tests[i].a), std::wstring());
266 gfx::SortedDisplayURL url2(GURL(tests[i].b), std::wstring()); 264 gfx::SortedDisplayURL url2(GURL(tests[i].b), std::wstring());
267 EXPECT_EQ(tests[i].compare_result, url1.Compare(url2, collator.get())); 265 EXPECT_EQ(tests[i].compare_result, url1.Compare(url2, collator.get()));
268 EXPECT_EQ(-tests[i].compare_result, url2.Compare(url1, collator.get())); 266 EXPECT_EQ(-tests[i].compare_result, url2.Compare(url1, collator.get()));
269 } 267 }
270 } 268 }
OLDNEW
« no previous file with comments | « no previous file | net/disk_cache/disk_cache_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698