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

Side by Side Diff: components/favicon_base/large_icon_url_parser_unittest.cc

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: … Created 4 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
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_base/large_icon_url_parser.h" 5 #include "components/favicon_base/large_icon_url_parser.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
12 #include "url/gurl.h" 11 #include "url/gurl.h"
13 12
14 namespace { 13 namespace {
15 14
16 const char kTestUrlStr[] = "https://www.google.ca/imghp?hl=en&tab=wi"; 15 const char kTestUrlStr[] = "https://www.google.ca/imghp?hl=en&tab=wi";
17 16
18 } // namespace 17 } // namespace
19 18
20 TEST(LargeIconUrlParserTest, ParseLargeIconPathSuccess) { 19 TEST(LargeIconUrlParserTest, ParseLargeIconPathSuccess) {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 "/http://www.google.com/", // Missing size. 54 "/http://www.google.com/", // Missing size.
56 "not_a_number/http://www.google.com/", // Bad size. 55 "not_a_number/http://www.google.com/", // Bad size.
57 "0/http://www.google.com/", // Non-positive size. 56 "0/http://www.google.com/", // Non-positive size.
58 "-1/http://www.google.com/", // Non-positive size. 57 "-1/http://www.google.com/", // Non-positive size.
59 }; 58 };
60 for (size_t i = 0; i < arraysize(test_cases); ++i) { 59 for (size_t i = 0; i < arraysize(test_cases); ++i) {
61 LargeIconUrlParser parser; 60 LargeIconUrlParser parser;
62 EXPECT_FALSE(parser.Parse(test_cases[i])) << "test_cases[" << i << "]"; 61 EXPECT_FALSE(parser.Parse(test_cases[i])) << "test_cases[" << i << "]";
63 } 62 }
64 } 63 }
OLDNEW
« no previous file with comments | « components/favicon_base/favicon_url_parser_unittest.cc ('k') | components/feedback/anonymizer_tool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698