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

Side by Side Diff: components/favicon/core/fallback_url_util_unittest.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/favicon/core/fallback_url_util.h" 5 #include "components/favicon/core/fallback_url_util.h"
6 6
7 #include <stddef.h>
8
7 #include "base/macros.h" 9 #include "base/macros.h"
8 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
9 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
10 #include "url/gurl.h" 12 #include "url/gurl.h"
11 13
12 namespace favicon { 14 namespace favicon {
13 namespace { 15 namespace {
14 16
15 TEST(FallbackURLUtilTest, GetFallbackIconText) { 17 TEST(FallbackURLUtilTest, GetFallbackIconText) {
16 struct { 18 struct {
(...skipping 28 matching lines...) Expand all
45 for (size_t i = 0; i < arraysize(test_cases); ++i) { 47 for (size_t i = 0; i < arraysize(test_cases); ++i) {
46 base::string16 expected = base::ASCIIToUTF16(test_cases[i].expected); 48 base::string16 expected = base::ASCIIToUTF16(test_cases[i].expected);
47 GURL url(test_cases[i].url_str); 49 GURL url(test_cases[i].url_str);
48 EXPECT_EQ(expected, GetFallbackIconText(url)) << " for test_cases[" << i 50 EXPECT_EQ(expected, GetFallbackIconText(url)) << " for test_cases[" << i
49 << "]"; 51 << "]";
50 } 52 }
51 } 53 }
52 54
53 } // namespace 55 } // namespace
54 } // namespace favicon 56 } // namespace favicon
OLDNEW
« no previous file with comments | « components/favicon/core/fallback_icon_service.cc ('k') | components/favicon/core/favicon_driver_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698