| OLD | NEW |
| 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 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" | 5 #import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
| 11 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 11 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" |
| 12 #include "chrome/browser/ui/omnibox/chrome_omnibox_client.h" | 12 #include "chrome/browser/ui/omnibox/chrome_omnibox_client.h" |
| 13 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" | 13 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" |
| 14 #include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h" | 14 #include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h" |
| 15 #include "chrome/test/base/testing_profile.h" | 15 #include "chrome/test/base/testing_profile.h" |
| 16 #include "components/omnibox/browser/omnibox_popup_model.h" | 16 #include "components/omnibox/browser/omnibox_popup_model.h" |
| 17 #include "components/omnibox/browser/omnibox_popup_view.h" | 17 #include "components/omnibox/browser/omnibox_popup_view.h" |
| 18 #include "components/toolbar/toolbar_model_impl.h" | 18 #include "components/toolbar/toolbar_model_impl.h" |
| 19 #include "content/public/common/content_constants.h" | 19 #include "content/public/common/content_constants.h" |
| 20 #include "testing/platform_test.h" | 20 #include "testing/platform_test.h" |
| 21 #include "ui/gfx/font.h" | 21 #include "ui/gfx/font.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 | 169 |
| 170 // With popup open verify that pressing up and down arrow works. | 170 // With popup open verify that pressing up and down arrow works. |
| 171 popup_view.set_is_open(true); | 171 popup_view.set_is_open(true); |
| 172 model->set_up_or_down_count(0); | 172 model->set_up_or_down_count(0); |
| 173 view.OnDoCommandBySelector(@selector(moveDown:)); | 173 view.OnDoCommandBySelector(@selector(moveDown:)); |
| 174 EXPECT_EQ(1, model->up_or_down_count()); | 174 EXPECT_EQ(1, model->up_or_down_count()); |
| 175 model->set_up_or_down_count(0); | 175 model->set_up_or_down_count(0); |
| 176 view.OnDoCommandBySelector(@selector(moveUp:)); | 176 view.OnDoCommandBySelector(@selector(moveUp:)); |
| 177 EXPECT_EQ(-1, model->up_or_down_count()); | 177 EXPECT_EQ(-1, model->up_or_down_count()); |
| 178 } | 178 } |
| OLD | NEW |