Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_view_browsertest.cc

Issue 823703003: Cleanup: Update the path to insets and point headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: point.h Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdio.h> 5 #include <stdio.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/scoped_observer.h" 8 #include "base/scoped_observer.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
(...skipping 29 matching lines...) Expand all
40 #include "components/omnibox/autocomplete_match.h" 40 #include "components/omnibox/autocomplete_match.h"
41 #include "components/search_engines/template_url.h" 41 #include "components/search_engines/template_url.h"
42 #include "components/search_engines/template_url_service.h" 42 #include "components/search_engines/template_url_service.h"
43 #include "content/public/browser/notification_service.h" 43 #include "content/public/browser/notification_service.h"
44 #include "content/public/browser/web_contents.h" 44 #include "content/public/browser/web_contents.h"
45 #include "net/dns/mock_host_resolver.h" 45 #include "net/dns/mock_host_resolver.h"
46 #include "ui/base/clipboard/clipboard.h" 46 #include "ui/base/clipboard/clipboard.h"
47 #include "ui/base/clipboard/scoped_clipboard_writer.h" 47 #include "ui/base/clipboard/scoped_clipboard_writer.h"
48 #include "ui/events/event_constants.h" 48 #include "ui/events/event_constants.h"
49 #include "ui/events/keycodes/keyboard_codes.h" 49 #include "ui/events/keycodes/keyboard_codes.h"
50 #include "ui/gfx/point.h" 50 #include "ui/gfx/geometry/point.h"
51 51
52 using base::ASCIIToUTF16; 52 using base::ASCIIToUTF16;
53 using base::UTF16ToUTF8; 53 using base::UTF16ToUTF8;
54 using base::Time; 54 using base::Time;
55 using base::TimeDelta; 55 using base::TimeDelta;
56 56
57 namespace { 57 namespace {
58 58
59 const char kSearchKeyword[] = "foo"; 59 const char kSearchKeyword[] = "foo";
60 const char kSearchKeyword2[] = "footest.com"; 60 const char kSearchKeyword2[] = "footest.com";
(...skipping 1797 matching lines...) Expand 10 before | Expand all | Expand 10 after
1858 omnibox_view->Update(); 1858 omnibox_view->Update();
1859 EXPECT_EQ(url_c, omnibox_view->GetText()); 1859 EXPECT_EQ(url_c, omnibox_view->GetText());
1860 } 1860 }
1861 1861
1862 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, EscDisablesSearchTermReplacement) { 1862 IN_PROC_BROWSER_TEST_F(OmniboxViewTest, EscDisablesSearchTermReplacement) {
1863 browser()->toolbar_model()->set_url_replacement_enabled(true); 1863 browser()->toolbar_model()->set_url_replacement_enabled(true);
1864 chrome::FocusLocationBar(browser()); 1864 chrome::FocusLocationBar(browser());
1865 ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_ESCAPE, 0)); 1865 ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_ESCAPE, 0));
1866 EXPECT_FALSE(browser()->toolbar_model()->url_replacement_enabled()); 1866 EXPECT_FALSE(browser()->toolbar_model()->url_replacement_enabled());
1867 } 1867 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/exclusive_access/exclusive_access_bubble.h ('k') | chrome/browser/ui/panels/detached_panel_collection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698