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