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

Side by Side Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm

Issue 1652153003: Move toolbar_model_{impl,delegate}.{cc,h} to components/toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@3
Patch Set: Add static_cast<int> to fix compilation warning on Win Created 4 years, 10 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 | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h » ('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 (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 "chrome/browser/ui/cocoa/cocoa_profile_test.h" 10 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h"
11 #include "chrome/browser/ui/omnibox/chrome_omnibox_client.h" 11 #include "chrome/browser/ui/omnibox/chrome_omnibox_client.h"
12 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h" 12 #include "chrome/browser/ui/omnibox/chrome_omnibox_edit_controller.h"
13 #include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h" 13 #include "chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h"
14 #include "chrome/browser/ui/toolbar/toolbar_model_impl.h"
15 #include "chrome/test/base/testing_profile.h" 14 #include "chrome/test/base/testing_profile.h"
16 #include "components/omnibox/browser/omnibox_popup_model.h" 15 #include "components/omnibox/browser/omnibox_popup_model.h"
17 #include "components/omnibox/browser/omnibox_popup_view.h" 16 #include "components/omnibox/browser/omnibox_popup_view.h"
17 #include "components/toolbar/toolbar_model_impl.h"
18 #include "content/public/common/content_constants.h" 18 #include "content/public/common/content_constants.h"
19 #include "testing/platform_test.h" 19 #include "testing/platform_test.h"
20 #include "ui/gfx/font.h" 20 #include "ui/gfx/font.h"
21 #include "ui/gfx/geometry/rect.h" 21 #include "ui/gfx/geometry/rect.h"
22 #include "ui/gfx/image/image.h" 22 #include "ui/gfx/image/image.h"
23 23
24 namespace { 24 namespace {
25 25
26 class MockOmniboxEditModel : public OmniboxEditModel { 26 class MockOmniboxEditModel : public OmniboxEditModel {
27 public: 27 public:
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // With popup open verify that pressing up and down arrow works. 197 // With popup open verify that pressing up and down arrow works.
198 popup_view.set_is_open(true); 198 popup_view.set_is_open(true);
199 model->set_up_or_down_count(0); 199 model->set_up_or_down_count(0);
200 view.OnDoCommandBySelector(@selector(moveDown:)); 200 view.OnDoCommandBySelector(@selector(moveDown:));
201 EXPECT_EQ(1, model->up_or_down_count()); 201 EXPECT_EQ(1, model->up_or_down_count());
202 model->set_up_or_down_count(0); 202 model->set_up_or_down_count(0);
203 view.OnDoCommandBySelector(@selector(moveUp:)); 203 view.OnDoCommandBySelector(@selector(moveUp:));
204 EXPECT_EQ(-1, model->up_or_down_count()); 204 EXPECT_EQ(-1, model->up_or_down_count());
205 } 205 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/toolbar/chrome_toolbar_model_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698