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

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

Issue 2407153008: Delete TestDisplaySnapshot and update tests. (Closed)
Patch Set: Rebase and cleanup. Created 4 years, 2 months 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_display_snapshot.h
diff --git a/ui/display/chromeos/test/test_display_snapshot.h b/ui/display/chromeos/test/test_display_snapshot.h
deleted file mode 100644
index 00b7483e0ae419aa2606c0d66d9f7a03e6d99dcc..0000000000000000000000000000000000000000
--- a/ui/display/chromeos/test/test_display_snapshot.h
+++ /dev/null
@@ -1,50 +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_DISPLAY_SNAPSHOT_H_
-#define UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_SNAPSHOT_H_
-
-#include <stdint.h>
-
-#include "base/macros.h"
-#include "ui/display/display_export.h"
-#include "ui/display/types/display_snapshot.h"
-
-namespace ui {
-
-class DISPLAY_EXPORT TestDisplaySnapshot : public DisplaySnapshot {
- public:
- TestDisplaySnapshot();
- TestDisplaySnapshot(int64_t display_id,
- const gfx::Point& origin,
- const gfx::Size& physical_size,
- DisplayConnectionType type,
- bool is_aspect_preserving_scaling,
- int64_t product_id,
- bool has_color_correction_matrix,
- std::vector<std::unique_ptr<const DisplayMode>> modes,
- const DisplayMode* current_mode,
- const DisplayMode* native_mode);
- ~TestDisplaySnapshot() override;
-
- void set_type(DisplayConnectionType type) { type_ = type; }
- void set_modes(std::vector<std::unique_ptr<const DisplayMode>> modes) {
- modes_ = std::move(modes);
- }
- void set_native_mode(const ui::DisplayMode* mode) { native_mode_ = mode; }
- void set_is_aspect_preserving_scaling(bool state) {
- is_aspect_preserving_scaling_ = state;
- }
- void set_display_id(int64_t id) { display_id_ = id; }
-
- // DisplaySnapshot overrides:
- std::string ToString() const override;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(TestDisplaySnapshot);
-};
-
-} // namespace ui
-
-#endif // UI_DISPLAY_CHROMEOS_TEST_TEST_DISPLAY_SNAPSHOT_H_
« no previous file with comments | « ui/display/chromeos/query_content_protection_task_unittest.cc ('k') | ui/display/chromeos/test/test_display_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698