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

Side by Side Diff: components/favicon_base/fallback_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, 8 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/fallback_icon_url_parser.h" 5 #include "components/favicon_base/fallback_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 "components/favicon_base/fallback_icon_style.h" 10 #include "components/favicon_base/fallback_icon_style.h"
12 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
13 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
14 #include "ui/gfx/favicon_size.h" 13 #include "ui/gfx/favicon_size.h"
15 #include "url/gurl.h" 14 #include "url/gurl.h"
16 15
17 using chrome::ParsedFallbackIconPath; 16 using chrome::ParsedFallbackIconPath;
18 using favicon_base::FallbackIconStyle; 17 using favicon_base::FallbackIconStyle;
19 18
20 namespace chrome { 19 namespace chrome {
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 // Bad specs. 276 // Bad specs.
278 "32,#junk,fff,0.75,0.25/http://www.google.com/", 277 "32,#junk,fff,0.75,0.25/http://www.google.com/",
279 }; 278 };
280 for (size_t i = 0; i < arraysize(test_cases); ++i) { 279 for (size_t i = 0; i < arraysize(test_cases); ++i) {
281 chrome::ParsedFallbackIconPath parsed; 280 chrome::ParsedFallbackIconPath parsed;
282 EXPECT_FALSE(parsed.Parse(test_cases[i])) << "test_cases[" << i << "]"; 281 EXPECT_FALSE(parsed.Parse(test_cases[i])) << "test_cases[" << i << "]";
283 } 282 }
284 } 283 }
285 284
286 } // namespace chrome 285 } // namespace chrome
OLDNEW
« no previous file with comments | « components/favicon/core/large_icon_service_unittest.cc ('k') | components/favicon_base/favicon_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698