Lines Matching refs:GetPreferredSize
58 EXPECT_LT(button.GetPreferredSize().width(), short_text_width);
60 EXPECT_GT(button.GetPreferredSize().height(), font.GetHeight());
61 EXPECT_GT(button.GetPreferredSize().width(), short_text_width);
62 EXPECT_LT(button.GetPreferredSize().width(), long_text_width);
64 EXPECT_GT(button.GetPreferredSize().width(), long_text_width);
66 EXPECT_GT(button.GetPreferredSize().width(), long_text_width);
70 EXPECT_EQ(button.GetPreferredSize(), gfx::Size(long_text_width, 1));
74 EXPECT_GT(button.GetPreferredSize().width(), short_text_width);
75 EXPECT_LT(button.GetPreferredSize().width(), long_text_width);
86 EXPECT_LT(button.GetPreferredSize().width(), small_size);
87 EXPECT_LT(button.GetPreferredSize().height(), small_size);
89 EXPECT_GT(button.GetPreferredSize().width(), small_size);
90 EXPECT_GT(button.GetPreferredSize().height(), small_size);
91 EXPECT_LT(button.GetPreferredSize().width(), large_size);
92 EXPECT_LT(button.GetPreferredSize().height(), large_size);
94 EXPECT_GT(button.GetPreferredSize().width(), large_size);
95 EXPECT_GT(button.GetPreferredSize().height(), large_size);
97 EXPECT_GT(button.GetPreferredSize().width(), large_size);
98 EXPECT_GT(button.GetPreferredSize().height(), large_size);
102 EXPECT_EQ(button.GetPreferredSize(), gfx::Size(large_size, 1));
106 EXPECT_GT(button.GetPreferredSize().width(), small_size);
107 EXPECT_LT(button.GetPreferredSize().width(), large_size);
122 EXPECT_LT(button.GetPreferredSize().width(), text_width);
123 EXPECT_LT(button.GetPreferredSize().width(), image_size);
124 EXPECT_LT(button.GetPreferredSize().height(), image_size);
126 EXPECT_GT(button.GetPreferredSize().width(), text_width);
127 EXPECT_GT(button.GetPreferredSize().height(), font.GetHeight());
128 EXPECT_LT(button.GetPreferredSize().width(), text_width + image_size);
129 EXPECT_LT(button.GetPreferredSize().height(), image_size);
131 EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size);
132 EXPECT_GT(button.GetPreferredSize().height(), image_size);
136 button.SetSize(button.GetPreferredSize());
150 EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size);
151 EXPECT_GT(button.GetPreferredSize().height(), image_size);
153 EXPECT_GT(button.GetPreferredSize().width(), text_width + image_size);
154 EXPECT_GT(button.GetPreferredSize().height(), image_size);
158 EXPECT_EQ(button.GetPreferredSize(), gfx::Size(image_size, 1));
162 EXPECT_LT(button.GetPreferredSize().width(), text_width);
163 EXPECT_LT(button.GetPreferredSize().width(), image_size);
164 EXPECT_LT(button.GetPreferredSize().height(), image_size);
173 const int original_width = button.GetPreferredSize().width();
174 const int original_height = button.GetPreferredSize().height();
178 EXPECT_GT(button.GetPreferredSize().width(), original_width);
179 EXPECT_GT(button.GetPreferredSize().height(), original_height);
185 EXPECT_EQ(original_width, button.GetPreferredSize().width());
186 EXPECT_EQ(original_height, button.GetPreferredSize().height());