| Index: chrome/browser/ui/cocoa/browser_window_utils_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/browser_window_utils_unittest.mm b/chrome/browser/ui/cocoa/browser_window_utils_unittest.mm
|
| index f691e99400c368587ee4124dac8284070f24906a..b9d9d4f6c4c55f4713c36420d9661a21c534195d 100644
|
| --- a/chrome/browser/ui/cocoa/browser_window_utils_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/browser_window_utils_unittest.mm
|
| @@ -26,15 +26,17 @@ const struct {
|
| };
|
|
|
| TEST(BrowserWindowUtilsTest, TestIsTextEditingEvent) {
|
| - content::NativeWebKeyboardEvent event;
|
| + content::NativeWebKeyboardEvent event(WebInputEvent::Char,
|
| + WebInputEvent::NoModifiers,
|
| + WebInputEvent::TimeStampForTesting);
|
| EXPECT_FALSE([BrowserWindowUtils isTextEditingEvent:event]);
|
|
|
| for (const auto& test : kTextEditingEventTestCases) {
|
| SCOPED_TRACE(base::StringPrintf("key = %c, modifiers = %d",
|
| test.key_code, test.modifiers));
|
| - content::NativeWebKeyboardEvent event;
|
| + content::NativeWebKeyboardEvent event(WebInputEvent::Char, test.modifiers,
|
| + WebInputEvent::TimeStampForTesting);
|
| event.windowsKeyCode = test.key_code;
|
| - event.modifiers = test.modifiers;
|
| EXPECT_EQ(test.is_text_editing_event,
|
| [BrowserWindowUtils isTextEditingEvent:event]);
|
| }
|
|
|