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

Unified Diff: components/mus/public/cpp/tests/test_window_tree.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 6 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: components/mus/public/cpp/tests/test_window_tree.cc
diff --git a/components/mus/public/cpp/tests/test_window_tree.cc b/components/mus/public/cpp/tests/test_window_tree.cc
deleted file mode 100644
index 01b4b4c121d889a26bed9cd9eb1209994d220874..0000000000000000000000000000000000000000
--- a/components/mus/public/cpp/tests/test_window_tree.cc
+++ /dev/null
@@ -1,167 +0,0 @@
-// Copyright 2015 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.
-
-#include "components/mus/public/cpp/tests/test_window_tree.h"
-
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace mus {
-
-TestWindowTree::TestWindowTree()
- : got_change_(false), change_id_(0), window_id_(0u) {}
-
-TestWindowTree::~TestWindowTree() {}
-
-bool TestWindowTree::GetAndClearChangeId(uint32_t* change_id) {
- if (!got_change_)
- return false;
-
- if (change_id)
- *change_id = change_id_;
- got_change_ = false;
- return true;
-}
-
-bool TestWindowTree::WasEventAcked(uint32_t event_id) const {
- return acked_events_.count(event_id);
-}
-
-void TestWindowTree::NewWindow(
- uint32_t change_id,
- uint32_t window_id,
- mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) {}
-
-void TestWindowTree::NewTopLevelWindow(
- uint32_t change_id,
- uint32_t window_id,
- mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) {
- got_change_ = true;
- change_id_ = change_id;
- window_id_ = window_id;
-}
-
-void TestWindowTree::DeleteWindow(uint32_t change_id, uint32_t window_id) {}
-
-void TestWindowTree::SetWindowBounds(uint32_t change_id,
- uint32_t window_id,
- const gfx::Rect& bounds) {
- got_change_ = true;
- change_id_ = change_id;
-}
-
-void TestWindowTree::SetClientArea(
- uint32_t window_id,
- const gfx::Insets& insets,
- mojo::Array<gfx::Rect> additional_client_areas) {}
-
-void TestWindowTree::SetHitTestMask(uint32_t window_id, const gfx::Rect& mask) {
-}
-
-void TestWindowTree::SetWindowVisibility(uint32_t change_id,
- uint32_t window_id,
- bool visible) {
- got_change_ = true;
- change_id_ = change_id;
-}
-
-void TestWindowTree::SetWindowProperty(uint32_t change_id,
- uint32_t window_id,
- const mojo::String& name,
- mojo::Array<uint8_t> value) {
- got_change_ = true;
- change_id_ = change_id;
-}
-
-void TestWindowTree::SetWindowOpacity(uint32_t change_id,
- uint32_t window_id,
- float opacity) {
- got_change_ = true;
- change_id_ = change_id;
-}
-
-void TestWindowTree::AttachSurface(
- uint32_t window_id,
- mojom::SurfaceType type,
- mojo::InterfaceRequest<mojom::Surface> surface,
- mojom::SurfaceClientPtr client) {}
-
-void TestWindowTree::AddWindow(uint32_t change_id,
- uint32_t parent,
- uint32_t child) {}
-
-void TestWindowTree::RemoveWindowFromParent(uint32_t change_id,
- uint32_t window_id) {}
-
-void TestWindowTree::AddTransientWindow(uint32_t change_id,
- uint32_t window_id,
- uint32_t transient_window_id) {}
-
-void TestWindowTree::RemoveTransientWindowFromParent(
- uint32_t change_id,
- uint32_t transient_window_id) {}
-
-void TestWindowTree::SetModal(uint32_t change_id, uint32_t window_id) {
- got_change_ = true;
- change_id_ = change_id;
-}
-
-void TestWindowTree::ReorderWindow(uint32_t change_id,
- uint32_t window_id,
- uint32_t relative_window_id,
- mojom::OrderDirection direction) {}
-
-void TestWindowTree::GetWindowTree(uint32_t window_id,
- const GetWindowTreeCallback& callback) {}
-
-void TestWindowTree::SetCapture(uint32_t change_id, uint32_t window_id) {
- got_change_ = true;
- change_id_ = change_id;
-}
-
-void TestWindowTree::ReleaseCapture(uint32_t change_id, uint32_t window_id) {
- got_change_ = true;
- change_id_ = change_id;
-}
-
-void TestWindowTree::SetEventObserver(mojom::EventMatcherPtr matcher,
- uint32_t observer_id) {}
-
-void TestWindowTree::Embed(uint32_t window_id,
- mojom::WindowTreeClientPtr client,
- uint32_t flags,
- const EmbedCallback& callback) {}
-
-void TestWindowTree::SetFocus(uint32_t change_id, uint32_t window_id) {
- got_change_ = true;
- change_id_ = change_id;
-}
-
-void TestWindowTree::SetCanFocus(uint32_t window_id, bool can_focus) {}
-
-void TestWindowTree::SetPredefinedCursor(uint32_t change_id,
- uint32_t window_id,
- mus::mojom::Cursor cursor_id) {}
-
-void TestWindowTree::SetWindowTextInputState(uint32_t window_id,
- mojo::TextInputStatePtr state) {}
-
-void TestWindowTree::SetImeVisibility(uint32_t window_id,
- bool visible,
- mojo::TextInputStatePtr state) {}
-
-void TestWindowTree::OnWindowInputEventAck(uint32_t event_id,
- mus::mojom::EventResult result) {
- EXPECT_FALSE(acked_events_.count(event_id));
- acked_events_.insert(event_id);
-}
-
-void TestWindowTree::GetWindowManagerClient(
- mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) {}
-
-void TestWindowTree::GetCursorLocationMemory(
- const GetCursorLocationMemoryCallback& callback) {
- callback.Run(mojo::ScopedSharedBufferHandle());
-}
-
-} // namespace mus
« no previous file with comments | « components/mus/public/cpp/tests/test_window_tree.h ('k') | components/mus/public/cpp/tests/test_window_tree_client_setup.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698