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 "base/format_macros.h" | 5 #include "base/format_macros.h" |
6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
7 #include "base/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/autocomplete/autocomplete_input.h" | 9 #include "chrome/browser/autocomplete/autocomplete_input.h" |
10 #include "chrome/browser/autocomplete/autocomplete_match.h" | 10 #include "chrome/browser/autocomplete/autocomplete_match.h" |
11 #include "chrome/browser/autocomplete/autocomplete_provider.h" | 11 #include "chrome/browser/autocomplete/autocomplete_provider.h" |
12 #include "chrome/browser/extensions/extension_browsertest.h" | 12 #include "chrome/browser/extensions/extension_browsertest.h" |
13 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
14 #include "chrome/browser/extensions/unpacked_installer.h" | 14 #include "chrome/browser/extensions/unpacked_installer.h" |
15 #include "chrome/browser/history/history_service.h" | 15 #include "chrome/browser/history/history_service.h" |
16 #include "chrome/browser/history/history_service_factory.h" | 16 #include "chrome/browser/history/history_service_factory.h" |
17 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 location_bar->FocusSearch(); | 252 location_bar->FocusSearch(); |
253 EXPECT_TRUE(location_bar->GetInputString().empty()); | 253 EXPECT_TRUE(location_bar->GetInputString().empty()); |
254 EXPECT_EQ(ASCIIToUTF16(" ?foo"), location_entry->GetText()); | 254 EXPECT_EQ(ASCIIToUTF16(" ?foo"), location_entry->GetText()); |
255 | 255 |
256 size_t selection_start, selection_end; | 256 size_t selection_start, selection_end; |
257 location_entry->GetSelectionBounds(&selection_start, &selection_end); | 257 location_entry->GetSelectionBounds(&selection_start, &selection_end); |
258 EXPECT_EQ(4U, std::min(selection_start, selection_end)); | 258 EXPECT_EQ(4U, std::min(selection_start, selection_end)); |
259 EXPECT_EQ(7U, std::max(selection_start, selection_end)); | 259 EXPECT_EQ(7U, std::max(selection_start, selection_end)); |
260 } | 260 } |
261 } | 261 } |
OLD | NEW |