| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/renderer/searchbox/searchbox.h" | 5 #include "chrome/renderer/searchbox/searchbox.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <string> | 10 #include <string> |
| 9 | 11 |
| 10 #include "base/basictypes.h" | 12 #include "base/macros.h" |
| 11 #include "chrome/common/instant_types.h" | 13 #include "chrome/common/instant_types.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 13 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 14 | 16 |
| 15 namespace { | 17 namespace { |
| 16 | 18 |
| 17 const auto FAVICON = SearchBox::FAVICON; | 19 const auto FAVICON = SearchBox::FAVICON; |
| 18 const auto LARGE_ICON = SearchBox::LARGE_ICON; | 20 const auto LARGE_ICON = SearchBox::LARGE_ICON; |
| 19 const auto FALLBACK_ICON = SearchBox::FALLBACK_ICON; | 21 const auto FALLBACK_ICON = SearchBox::FALLBACK_ICON; |
| 20 const auto THUMB = SearchBox::THUMB; | 22 const auto THUMB = SearchBox::THUMB; |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 GURL url; | 318 GURL url; |
| 317 GURL transient_url(test_cases[i].transient_url_str); | 319 GURL transient_url(test_cases[i].transient_url_str); |
| 318 EXPECT_FALSE(TranslateIconRestrictedUrl(transient_url, test_cases[i].type, | 320 EXPECT_FALSE(TranslateIconRestrictedUrl(transient_url, test_cases[i].type, |
| 319 helper, &url)) | 321 helper, &url)) |
| 320 << " for test_cases[" << i << "]"; | 322 << " for test_cases[" << i << "]"; |
| 321 EXPECT_TRUE(url.is_empty()) << " for test_cases[" << i << "]"; | 323 EXPECT_TRUE(url.is_empty()) << " for test_cases[" << i << "]"; |
| 322 } | 324 } |
| 323 } | 325 } |
| 324 | 326 |
| 325 } // namespace internal | 327 } // namespace internal |
| OLD | NEW |