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

Side by Side Diff: ui/views/controls/button/custom_button_unittest.cc

Issue 2326933002: MacViews: Fix gn check fail for mac_views_browser on Aura dependencies. (Closed)
Patch Set: Typo. Created 4 years, 3 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
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 #include "ui/views/controls/button/custom_button.h" 5 #include "ui/views/controls/button/custom_button.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 10 matching lines...) Expand all
21 #include "ui/views/controls/button/checkbox.h" 21 #include "ui/views/controls/button/checkbox.h"
22 #include "ui/views/controls/button/image_button.h" 22 #include "ui/views/controls/button/image_button.h"
23 #include "ui/views/controls/button/label_button.h" 23 #include "ui/views/controls/button/label_button.h"
24 #include "ui/views/controls/button/menu_button.h" 24 #include "ui/views/controls/button/menu_button.h"
25 #include "ui/views/controls/button/radio_button.h" 25 #include "ui/views/controls/button/radio_button.h"
26 #include "ui/views/controls/link.h" 26 #include "ui/views/controls/link.h"
27 #include "ui/views/controls/textfield/textfield.h" 27 #include "ui/views/controls/textfield/textfield.h"
28 #include "ui/views/test/views_test_base.h" 28 #include "ui/views/test/views_test_base.h"
29 29
30 #if defined(USE_AURA) 30 #if defined(USE_AURA)
31 #include "ui/aura/test/test_cursor_client.h" 31 #include "ui/aura/test/test_cursor_client.h" // nogncheck
32 #include "ui/aura/window.h" 32 #include "ui/aura/window.h" // nogncheck
33 #include "ui/aura/window_event_dispatcher.h" 33 #include "ui/aura/window_event_dispatcher.h" // nogncheck
34 #endif 34 #endif
35 35
36 namespace views { 36 namespace views {
37 37
38 using test::InkDropHostViewTestApi; 38 using test::InkDropHostViewTestApi;
39 using test::TestInkDrop; 39 using test::TestInkDrop;
40 40
41 namespace { 41 namespace {
42 42
43 // No-op test double of a ContextMenuController. 43 // No-op test double of a ContextMenuController.
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 EXPECT_EQ(CustomButton::STATE_PRESSED, button()->state()); 585 EXPECT_EQ(CustomButton::STATE_PRESSED, button()->state());
586 EXPECT_FALSE(button()->pressed()); 586 EXPECT_FALSE(button()->pressed());
587 587
588 ui::KeyEvent space_release(ui::ET_KEY_RELEASED, ui::VKEY_SPACE, ui::EF_NONE); 588 ui::KeyEvent space_release(ui::ET_KEY_RELEASED, ui::VKEY_SPACE, ui::EF_NONE);
589 SimulateKeyEvent(&space_release); 589 SimulateKeyEvent(&space_release);
590 EXPECT_EQ(CustomButton::STATE_NORMAL, button()->state()); 590 EXPECT_EQ(CustomButton::STATE_NORMAL, button()->state());
591 EXPECT_TRUE(button()->pressed()); 591 EXPECT_TRUE(button()->pressed());
592 } 592 }
593 593
594 } // namespace views 594 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698