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

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

Issue 138363004: Views Textfield fixes and cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync and rebase. Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « ui/views/color_chooser/color_chooser_view.cc ('k') | ui/views/controls/textfield/textfield.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 #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
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
OLDNEW
« no previous file with comments | « ui/views/color_chooser/color_chooser_view.cc ('k') | ui/views/controls/textfield/textfield.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698