| OLD | NEW |
| 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> |
| 8 |
| 9 #include "base/macros.h" |
| 7 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 8 #include "components/favicon_base/fallback_icon_style.h" | 11 #include "components/favicon_base/fallback_icon_style.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
| 11 #include "ui/gfx/favicon_size.h" | 14 #include "ui/gfx/favicon_size.h" |
| 12 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 13 | 16 |
| 14 using chrome::ParsedFallbackIconPath; | 17 using chrome::ParsedFallbackIconPath; |
| 15 using favicon_base::FallbackIconStyle; | 18 using favicon_base::FallbackIconStyle; |
| 16 | 19 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 // Bad specs. | 277 // Bad specs. |
| 275 "32,#junk,fff,0.75,0.25/http://www.google.com/", | 278 "32,#junk,fff,0.75,0.25/http://www.google.com/", |
| 276 }; | 279 }; |
| 277 for (size_t i = 0; i < arraysize(test_cases); ++i) { | 280 for (size_t i = 0; i < arraysize(test_cases); ++i) { |
| 278 chrome::ParsedFallbackIconPath parsed; | 281 chrome::ParsedFallbackIconPath parsed; |
| 279 EXPECT_FALSE(parsed.Parse(test_cases[i])) << "test_cases[" << i << "]"; | 282 EXPECT_FALSE(parsed.Parse(test_cases[i])) << "test_cases[" << i << "]"; |
| 280 } | 283 } |
| 281 } | 284 } |
| 282 | 285 |
| 283 } // namespace chrome | 286 } // namespace chrome |
| OLD | NEW |