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

Side by Side Diff: chrome/browser/ui/elide_url_unittest.cc

Issue 802483003: Cleanup: move elide_url_unittest.cc near its implementation source file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 6 years 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 | « no previous file | chrome/browser/ui/tests/elide_url_unittest.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 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 4
5 #include "chrome/browser/ui/elide_url.h" 5 #include "chrome/browser/ui/elide_url.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "ui/gfx/font_list.h" 9 #include "ui/gfx/font_list.h"
10 #include "ui/gfx/text_elider.h" 10 #include "ui/gfx/text_elider.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 // Trying to elide to a really short length will still keep the full TLD+1 192 // Trying to elide to a really short length will still keep the full TLD+1
193 EXPECT_EQ(base::ASCIIToUTF16("google.com"), 193 EXPECT_EQ(base::ASCIIToUTF16("google.com"),
194 ElideHost(GURL("http://google.com"), gfx::FontList(), 2)); 194 ElideHost(GURL("http://google.com"), gfx::FontList(), 2));
195 EXPECT_EQ(base::UTF8ToUTF16(kEllipsisStr + ".google.com"), 195 EXPECT_EQ(base::UTF8ToUTF16(kEllipsisStr + ".google.com"),
196 ElideHost(GURL("http://subdomain.google.com"), gfx::FontList(), 2)); 196 ElideHost(GURL("http://subdomain.google.com"), gfx::FontList(), 2));
197 EXPECT_EQ(base::ASCIIToUTF16("foo.bar"), 197 EXPECT_EQ(base::ASCIIToUTF16("foo.bar"),
198 ElideHost(GURL("http://foo.bar"), gfx::FontList(), 2)); 198 ElideHost(GURL("http://foo.bar"), gfx::FontList(), 2));
199 } 199 }
200 200
201 } // namespace 201 } // namespace
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/tests/elide_url_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698