Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: ui/display/chromeos/test/test_native_display_delegate.h

Issue 2540313002: Split //ui/display and create //ui/display/manager. (Closed)
Patch Set: Cleanup export header. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/display/chromeos/test/test_native_display_delegate.h
diff --git a/ui/display/chromeos/test/test_native_display_delegate.h b/ui/display/chromeos/test/test_native_display_delegate.h
deleted file mode 100644
index bad8ab2f852b5939afee7b3c8d8c226723759ccb..0000000000000000000000000000000000000000
--- a/ui/display/chromeos/test/test_native_display_delegate.h
+++ /dev/null
@@ -1,120 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
-#define UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
-
-#include <stdint.h>
-
-#include <vector>
-
-#include "base/macros.h"
-#include "ui/display/chromeos/test/action_logger.h"
-#include "ui/display/chromeos/test/action_logger_util.h"
-#include "ui/display/types/native_display_delegate.h"
-
-namespace ui {
-
-class ActionLogger;
-class DisplaySnapshot;
-
-namespace test {
-
-class TestNativeDisplayDelegate : public NativeDisplayDelegate {
- public:
- // Ownership of |log| remains with the caller.
- explicit TestNativeDisplayDelegate(ActionLogger* log);
- ~TestNativeDisplayDelegate() override;
-
- const std::vector<DisplaySnapshot*>& outputs() const { return outputs_; }
-
- void set_outputs(const std::vector<DisplaySnapshot*>& outputs) {
- outputs_ = outputs;
- }
-
- void set_max_configurable_pixels(int pixels) {
- max_configurable_pixels_ = pixels;
- }
-
- void set_get_hdcp_state_expectation(bool success) {
- get_hdcp_expectation_ = success;
- }
-
- void set_set_hdcp_state_expectation(bool success) {
- set_hdcp_expectation_ = success;
- }
-
- void set_hdcp_state(HDCPState state) { hdcp_state_ = state; }
-
- void set_run_async(bool run_async) { run_async_ = run_async; }
-
- // NativeDisplayDelegate overrides:
- void Initialize() override;
- void GrabServer() override;
- void UngrabServer() override;
- void TakeDisplayControl(const DisplayControlCallback& callback) override;
- void RelinquishDisplayControl(
- const DisplayControlCallback& callback) override;
- void SyncWithServer() override;
- void SetBackgroundColor(uint32_t color_argb) override;
- void ForceDPMSOn() override;
- void GetDisplays(const GetDisplaysCallback& callback) override;
- void AddMode(const DisplaySnapshot& output, const DisplayMode* mode) override;
- void Configure(const DisplaySnapshot& output,
- const DisplayMode* mode,
- const gfx::Point& origin,
- const ConfigureCallback& callback) override;
- void CreateFrameBuffer(const gfx::Size& size) override;
- void GetHDCPState(const DisplaySnapshot& output,
- const GetHDCPStateCallback& callback) override;
- void SetHDCPState(const DisplaySnapshot& output,
- HDCPState state,
- const SetHDCPStateCallback& callback) override;
- std::vector<ui::ColorCalibrationProfile> GetAvailableColorCalibrationProfiles(
- const DisplaySnapshot& output) override;
- bool SetColorCalibrationProfile(
- const DisplaySnapshot& output,
- ui::ColorCalibrationProfile new_profile) override;
- bool SetColorCorrection(const ui::DisplaySnapshot& output,
- const std::vector<GammaRampRGBEntry>& degamma_lut,
- const std::vector<GammaRampRGBEntry>& gamma_lut,
- const std::vector<float>& correction_matrix) override;
- void AddObserver(NativeDisplayObserver* observer) override;
- void RemoveObserver(NativeDisplayObserver* observer) override;
- display::FakeDisplayController* GetFakeDisplayController() override;
-
- private:
- bool Configure(const DisplaySnapshot& output,
- const DisplayMode* mode,
- const gfx::Point& origin);
-
- // Outputs to be returned by GetDisplays().
- std::vector<DisplaySnapshot*> outputs_;
-
- // |max_configurable_pixels_| represents the maximum number of pixels that
- // Configure will support. Tests can use this to force Configure
- // to fail if attempting to set a resolution that is higher than what
- // a device might support under a given circumstance.
- // A value of 0 means that no limit is enforced and Configure will
- // return success regardless of the resolution.
- int max_configurable_pixels_;
-
- bool get_hdcp_expectation_;
- bool set_hdcp_expectation_;
-
- // Result value of GetHDCPState().
- HDCPState hdcp_state_;
-
- // If true, the callbacks are posted on the message loop.
- bool run_async_;
-
- ActionLogger* log_; // Not owned.
-
- DISALLOW_COPY_AND_ASSIGN(TestNativeDisplayDelegate);
-};
-
-} // namespace test
-} // namespace ui
-
-#endif // UI_DISPLAY_CHROMEOS_TEST_TEST_NATIVE_DISPLAY_DELEGATE_H_
« no previous file with comments | « ui/display/chromeos/test/test_display_layout_manager.cc ('k') | ui/display/chromeos/test/test_native_display_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698