Chromium Code Reviews| Index: chrome/browser/ui/browser_browsertest.cc |
| diff --git a/chrome/browser/ui/browser_browsertest.cc b/chrome/browser/ui/browser_browsertest.cc |
| index da10776145b10134468bb4c775a326e095870822..ed12e83920e58bfd70988ca8f74e42b605f242d8 100644 |
| --- a/chrome/browser/ui/browser_browsertest.cc |
| +++ b/chrome/browser/ui/browser_browsertest.cc |
| @@ -2099,7 +2099,12 @@ class MockWebContentsObserver : public WebContentsObserver { |
| got_user_gesture_(false) { |
| } |
| - void DidGetUserGesture() override { got_user_gesture_ = true; } |
| + void DidGetUserInteraction(const blink::WebInputEvent::Type type) override { |
| + // We expect the only interaction here to be a browser-initiated navigation, |
| + // which is sent with the Undefined event type. |
| + EXPECT_EQ(type, blink::WebInputEvent::Undefined); |
|
Lei Zhang
2016/02/26 02:38:39
Reverse the arguments - EXPECT_EQ(expected_val, ac
|
| + got_user_gesture_ = true; |
| + } |
| bool got_user_gesture() const { |
| return got_user_gesture_; |