| Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor_unittest.mm
|
| diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor_unittest.mm b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor_unittest.mm
|
| index 6cf0a8d81cdefcb33e9e9bd190aa324d4d4d3bdc..fb4314394c9a00197c6bfa3395187fe5e3097819 100644
|
| --- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor_unittest.mm
|
| +++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor_unittest.mm
|
| @@ -19,6 +19,7 @@
|
| #import "third_party/ocmock/OCMock/OCMock.h"
|
| #include "third_party/ocmock/gtest_support.h"
|
| #import "third_party/ocmock/ocmock_extensions.h"
|
| +#import "ui/base/cocoa/touch_bar_forward_declarations.h"
|
| #import "ui/events/test/cocoa_test_event_utils.h"
|
|
|
| using ::testing::Return;
|
| @@ -195,6 +196,14 @@ TEST_F(AutocompleteTextFieldEditorTest, Display) {
|
| [editor_ display];
|
| }
|
|
|
| +// Tests that the Touch Bar is nothing.
|
| +TEST_F(AutocompleteTextFieldEditorTest, TouchBarTest) {
|
| + if ([field_ respondsToSelector:@selector(touchBar)]) {
|
| + NSTouchBar* touch_bar = [field_ performSelector:@selector(touchBar)];
|
| + EXPECT_FALSE(touch_bar);
|
| + }
|
| +}
|
| +
|
| // Test that -paste: is correctly delegated to the observer.
|
| TEST_F(AutocompleteTextFieldEditorObserverTest, Paste) {
|
| EXPECT_CALL(field_observer_, OnPaste());
|
|
|