| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_ | 5 #ifndef UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_ |
| 6 #define UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_ | 6 #define UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_ |
| 7 | 7 |
| 8 #include "testing/gmock/include/gmock/gmock.h" | 8 #include "testing/gmock/include/gmock/gmock.h" |
| 9 #include "ui/display/types/display_mode.h" | 9 #include "ui/display/types/display_mode.h" |
| 10 | 10 |
| 11 namespace display { | 11 namespace display { |
| 12 | 12 |
| 13 // Matcher for DisplayMode size and refresh rate. | 13 // Matcher for DisplayMode size and refresh rate. |
| 14 testing::Matcher<const ui::DisplayMode&> | 14 testing::Matcher<const DisplayMode&> IsDisplayMode(int width, |
| 15 IsDisplayMode(int width, int height, float refresh_rate = 60.0f); | 15 int height, |
| 16 float refresh_rate = 60.0f); |
| 16 | 17 |
| 17 } // namespace display | 18 } // namespace display |
| 18 | 19 |
| 19 #endif // UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_ | 20 #endif // UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_ |
| OLD | NEW |