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 #include "ui/views/controls/button/custom_button.h" | 5 #include "ui/views/controls/button/custom_button.h" |
6 | 6 |
7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/include/gtest/gtest.h" |
8 #include "ui/base/layout.h" | 8 #include "ui/base/layout.h" |
9 #include "ui/gfx/screen.h" | 9 #include "ui/gfx/screen.h" |
10 #include "ui/views/controls/button/checkbox.h" | 10 #include "ui/views/controls/button/checkbox.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 MenuButton menu_button(NULL, text, NULL, false); | 172 MenuButton menu_button(NULL, text, NULL, false); |
173 EXPECT_TRUE(CustomButton::AsCustomButton(&menu_button)); | 173 EXPECT_TRUE(CustomButton::AsCustomButton(&menu_button)); |
174 | 174 |
175 Label label; | 175 Label label; |
176 EXPECT_FALSE(CustomButton::AsCustomButton(&label)); | 176 EXPECT_FALSE(CustomButton::AsCustomButton(&label)); |
177 | 177 |
178 Link link(text); | 178 Link link(text); |
179 EXPECT_FALSE(CustomButton::AsCustomButton(&link)); | 179 EXPECT_FALSE(CustomButton::AsCustomButton(&link)); |
180 | 180 |
181 Textfield textfield(Textfield::STYLE_DEFAULT); | 181 Textfield textfield; |
182 EXPECT_FALSE(CustomButton::AsCustomButton(&textfield)); | 182 EXPECT_FALSE(CustomButton::AsCustomButton(&textfield)); |
183 } | 183 } |
184 | 184 |
185 } // namespace views | 185 } // namespace views |
OLD | NEW |