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

Side by Side Diff: chrome/browser/ui/views/autofill/autofill_popup_base_view_browsertest.cc

Issue 157003005: Replace std::map with base::SmallMap in ui::LatencyInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 9 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/views/autofill/autofill_popup_base_view.h" 5 #include "chrome/browser/ui/views/autofill/autofill_popup_base_view.h"
6 6
7 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h" 7 #include "chrome/browser/ui/autofill/autofill_popup_view_delegate.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 #include "chrome/test/base/in_process_browser_test.h" 10 #include "chrome/test/base/in_process_browser_test.h"
(...skipping 10 matching lines...) Expand all
21 using testing::Return; 21 using testing::Return;
22 using testing::ReturnRef; 22 using testing::ReturnRef;
23 23
24 class MockAutofillPopupViewDelegate : public AutofillPopupViewDelegate { 24 class MockAutofillPopupViewDelegate : public AutofillPopupViewDelegate {
25 public: 25 public:
26 MOCK_METHOD0(Hide, void()); 26 MOCK_METHOD0(Hide, void());
27 MOCK_METHOD0(ViewDestroyed, void()); 27 MOCK_METHOD0(ViewDestroyed, void());
28 MOCK_METHOD1(SetSelectionAtPoint, void(const gfx::Point&)); 28 MOCK_METHOD1(SetSelectionAtPoint, void(const gfx::Point&));
29 MOCK_METHOD1(AcceptSelectionAtPoint, void(const gfx::Point&)); 29 MOCK_METHOD1(AcceptSelectionAtPoint, void(const gfx::Point&));
30 MOCK_METHOD0(SelectionCleared, void()); 30 MOCK_METHOD0(SelectionCleared, void());
31 MOCK_METHOD1(ShouldRepostEvent, bool(const ui::MouseEvent&)); 31 // TODO(jdduke): Mock this method upon resolution of crbug.com/352463.
32 bool ShouldRepostEvent(const ui::MouseEvent&) { return false; }
32 MOCK_CONST_METHOD0(ShouldHideOnOutsideClick, bool()); 33 MOCK_CONST_METHOD0(ShouldHideOnOutsideClick, bool());
33 MOCK_CONST_METHOD0(popup_bounds, gfx::Rect&()); 34 MOCK_CONST_METHOD0(popup_bounds, gfx::Rect&());
34 MOCK_METHOD0(container_view, gfx::NativeView()); 35 MOCK_METHOD0(container_view, gfx::NativeView());
35 }; 36 };
36 37
37 } // namespace 38 } // namespace
38 39
39 class AutofillPopupBaseViewTest : public InProcessBrowserTest { 40 class AutofillPopupBaseViewTest : public InProcessBrowserTest {
40 public: 41 public:
41 AutofillPopupBaseViewTest() {} 42 AutofillPopupBaseViewTest() {}
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 ui::GestureEvent tap_event = CreateGestureEvent(ui::ET_GESTURE_TAP, point); 103 ui::GestureEvent tap_event = CreateGestureEvent(ui::ET_GESTURE_TAP, point);
103 SimulateGesture(&tap_event); 104 SimulateGesture(&tap_event);
104 105
105 // Tapping outside the bounds clears any selection. 106 // Tapping outside the bounds clears any selection.
106 ui::GestureEvent outside_tap = CreateGestureEvent(ui::ET_GESTURE_TAP, 107 ui::GestureEvent outside_tap = CreateGestureEvent(ui::ET_GESTURE_TAP,
107 gfx::Point(100, 100)); 108 gfx::Point(100, 100));
108 SimulateGesture(&outside_tap); 109 SimulateGesture(&outside_tap);
109 } 110 }
110 111
111 } // namespace autofill 112 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698