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/command_line.h" | 5 #include "base/command_line.h" |
6 #include "base/format_macros.h" | 6 #include "base/format_macros.h" |
7 #include "base/path_service.h" | |
8 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
9 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 9 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
11 #include "chrome/browser/extensions/extension_browsertest.h" | 10 #include "chrome/browser/extensions/extension_browsertest.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 11 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/extensions/unpacked_installer.h" | 12 #include "chrome/browser/extensions/unpacked_installer.h" |
14 #include "chrome/browser/history/history_service.h" | 13 #include "chrome/browser/history/history_service.h" |
15 #include "chrome/browser/history/history_service_factory.h" | 14 #include "chrome/browser/history/history_service_factory.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/search_engines/template_url_service_factory.h" | 16 #include "chrome/browser/search_engines/template_url_service_factory.h" |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 location_bar->FocusSearch(); | 276 location_bar->FocusSearch(); |
278 EXPECT_FALSE(location_bar->GetDestinationURL().is_valid()); | 277 EXPECT_FALSE(location_bar->GetDestinationURL().is_valid()); |
279 EXPECT_EQ(base::ASCIIToUTF16(" ?foo"), omnibox_view->GetText()); | 278 EXPECT_EQ(base::ASCIIToUTF16(" ?foo"), omnibox_view->GetText()); |
280 | 279 |
281 size_t selection_start, selection_end; | 280 size_t selection_start, selection_end; |
282 omnibox_view->GetSelectionBounds(&selection_start, &selection_end); | 281 omnibox_view->GetSelectionBounds(&selection_start, &selection_end); |
283 EXPECT_EQ(4U, std::min(selection_start, selection_end)); | 282 EXPECT_EQ(4U, std::min(selection_start, selection_end)); |
284 EXPECT_EQ(7U, std::max(selection_start, selection_end)); | 283 EXPECT_EQ(7U, std::max(selection_start, selection_end)); |
285 } | 284 } |
286 } | 285 } |
OLD | NEW |