#ifndef UI_DISPLAY_TEST_DISPLAY_TEST_UTIL_H_
#define UI_DISPLAY_TEST_DISPLAY_TEST_UTIL_H_
#include "ui/display/display.h"
#include "ui/display/util/display_util.h"
namespace display {
class ScopedSetInternalDisplayIds {
public:
explicit ScopedSetInternalDisplayIds(const base::flat_set<int64_t> ids) {
SetInternalDisplayIds(ids);
}
explicit ScopedSetInternalDisplayIds(int64_t id) {
SetInternalDisplayIds({id});
}
ScopedSetInternalDisplayIds(const ScopedSetInternalDisplayIds&) = delete;
ScopedSetInternalDisplayIds operator=(const ScopedSetInternalDisplayIds&) =
delete;
~ScopedSetInternalDisplayIds() { SetInternalDisplayIds({}); }
};
inline void PrintTo(const Display& display, ::std::ostream* os) {
*os << display.ToString();
}
}
#endif