display_matchers.h 695 B

1234567891011121314151617181920
  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
  3. // found in the LICENSE file.
  4. #ifndef UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_
  5. #define UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_
  6. #include "testing/gmock/include/gmock/gmock.h"
  7. #include "ui/display/types/display_mode.h"
  8. namespace display {
  9. // Matcher for DisplayMode size and refresh rate.
  10. testing::Matcher<const DisplayMode&> IsDisplayMode(int width,
  11. int height,
  12. float refresh_rate = 60.0f);
  13. } // namespace display
  14. #endif // UI_DISPLAY_TEST_DISPLAY_MATCHERS_H_