| Index: blimp/client/core/contents/tab_control_feature_unittest.cc
|
| diff --git a/blimp/client/core/contents/tab_control_feature_unittest.cc b/blimp/client/core/contents/tab_control_feature_unittest.cc
|
| index 69acd60fe0668f69cfc3d34ad4e426a9174877e1..7a240552f0d91a74a913f625b8b51945a773ef35 100644
|
| --- a/blimp/client/core/contents/tab_control_feature_unittest.cc
|
| +++ b/blimp/client/core/contents/tab_control_feature_unittest.cc
|
| @@ -56,7 +56,7 @@ TEST_F(TabControlFeatureTest, CreatesCorrectSizeMessage) {
|
| feature_.SetSizeAndScale(gfx::Size(width, height), dp_to_px);
|
| }
|
|
|
| -TEST_F(TabControlFeatureTest, NoDuplicateSizeMessage) {
|
| +TEST_F(TabControlFeatureTest, EnsureDuplicateSizeMessageAllowed) {
|
| uint64_t width = 10;
|
| uint64_t height = 15;
|
| float dp_to_px = 1.23f;
|
| @@ -64,29 +64,32 @@ TEST_F(TabControlFeatureTest, NoDuplicateSizeMessage) {
|
| EXPECT_CALL(
|
| *out_processor_,
|
| MockableProcessMessage(EqualsSizeMessage(width, height, dp_to_px), _))
|
| - .Times(1)
|
| + .Times(2)
|
| .RetiresOnSaturation();
|
| EXPECT_CALL(
|
| *out_processor_,
|
| MockableProcessMessage(EqualsSizeMessage(width, height, dp_to_px + 1), _))
|
| - .Times(1)
|
| + .Times(2)
|
| .RetiresOnSaturation();
|
| EXPECT_CALL(*out_processor_,
|
| MockableProcessMessage(
|
| EqualsSizeMessage(width + 1, height, dp_to_px + 1), _))
|
| - .Times(1)
|
| + .Times(2)
|
| .RetiresOnSaturation();
|
| EXPECT_CALL(*out_processor_,
|
| MockableProcessMessage(
|
| EqualsSizeMessage(width + 1, height + 1, dp_to_px + 1), _))
|
| - .Times(1)
|
| + .Times(2)
|
| .RetiresOnSaturation();
|
|
|
| feature_.SetSizeAndScale(gfx::Size(width, height), dp_to_px);
|
| feature_.SetSizeAndScale(gfx::Size(width, height), dp_to_px);
|
| feature_.SetSizeAndScale(gfx::Size(width, height), dp_to_px + 1);
|
| + feature_.SetSizeAndScale(gfx::Size(width, height), dp_to_px + 1);
|
| + feature_.SetSizeAndScale(gfx::Size(width + 1, height), dp_to_px + 1);
|
| feature_.SetSizeAndScale(gfx::Size(width + 1, height), dp_to_px + 1);
|
| feature_.SetSizeAndScale(gfx::Size(width + 1, height + 1), dp_to_px + 1);
|
| + feature_.SetSizeAndScale(gfx::Size(width + 1, height + 1), dp_to_px + 1);
|
| }
|
|
|
| } // namespace client
|
|
|