OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/ui/toolbar/toolbar_model.h" | 5 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/search_engines/template_url.h" | 9 #include "chrome/browser/search_engines/template_url.h" |
10 #include "chrome/browser/search_engines/template_url_service.h" | 10 #include "chrome/browser/search_engines/template_url_service.h" |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 ASCIIToUTF16("searchurl/?q=tractor+supply"), | 78 ASCIIToUTF16("searchurl/?q=tractor+supply"), |
79 ASCIIToUTF16("searchurl/?q=tractor+supply"), | 79 ASCIIToUTF16("searchurl/?q=tractor+supply"), |
80 ASCIIToUTF16("searchurl/?q=tractor+supply"), | 80 ASCIIToUTF16("searchurl/?q=tractor+supply"), |
81 false, | 81 false, |
82 true | 82 true |
83 }, | 83 }, |
84 { | 84 { |
85 GURL("http://google.com/search?q=tractor+supply"), | 85 GURL("http://google.com/search?q=tractor+supply"), |
86 ASCIIToUTF16("google.com/search?q=tractor+supply"), | 86 ASCIIToUTF16("google.com/search?q=tractor+supply"), |
87 ASCIIToUTF16("google.com/search?q=tractor+supply"), | 87 ASCIIToUTF16("google.com/search?q=tractor+supply"), |
88 ASCIIToUTF16("google.com/search?q=tractor+supply"), | 88 ASCIIToUTF16("tractor supply"), |
89 false, | 89 true, |
90 true | 90 true |
91 }, | 91 }, |
92 { | 92 { |
93 GURL("http://google.com/search?q=tractor+supply&espv=1"), | 93 GURL("http://google.com/search?q=tractor+supply&espv=1"), |
94 ASCIIToUTF16("google.com/search?q=tractor+supply&espv=1"), | 94 ASCIIToUTF16("google.com/search?q=tractor+supply&espv=1"), |
95 ASCIIToUTF16("google.com/search?q=tractor+supply&espv=1"), | 95 ASCIIToUTF16("google.com/search?q=tractor+supply&espv=1"), |
96 ASCIIToUTF16("tractor supply"), | 96 ASCIIToUTF16("tractor supply"), |
97 true, | 97 true, |
98 true | 98 true |
99 } | 99 } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 AddTab(browser(), GURL(chrome::kAboutBlankURL)); | 192 AddTab(browser(), GURL(chrome::kAboutBlankURL)); |
193 for (size_t i = 0; i < arraysize(test_items); ++i) { | 193 for (size_t i = 0; i < arraysize(test_items); ++i) { |
194 const TestItem& test_item = test_items[i]; | 194 const TestItem& test_item = test_items[i]; |
195 NavigateAndCheckText(test_item.url, | 195 NavigateAndCheckText(test_item.url, |
196 test_item.expected_text, | 196 test_item.expected_text, |
197 test_item.expected_replace_text_active, | 197 test_item.expected_replace_text_active, |
198 test_item.would_replace, | 198 test_item.would_replace, |
199 test_item.should_display); | 199 test_item.should_display); |
200 } | 200 } |
201 } | 201 } |
OLD | NEW |