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

Side by Side Diff: services/ui/ws/current_drag_operation_unittest.cc

Issue 2266603002: mus: Implement interwindow drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Uploaded for a few comments. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
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
5 #include "services/ui/ws/current_drag_operation_unittest.h"
6
7 #include "services/ui/ws/test_server_window_delegate.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9
10 class TestCurrentDragOperationDelegate : public CurrentDragOperationDelegate {
11 public:
12 void OnDragOver(bool success) override { NOTIMPLEMENTED(); }
13 };
14
15 class CurrentDragOperationTest : public testing::Test,
16 public CurrentDragOperationDelegate {
17 public:
18 // Overridden from testing::Test:
19 void SetUp() override {
20 testing::Test::SetUp();
21
22 window_delegate_.reset(new TestServerWindowDelegate());
23 root_window_.reset(
24 new ServerWindow(window_delegate_.get(), WindowId(1, 2)));
25 window_delegate_->set_root_window(root_window_.get());
26 root_window_->SetVisible(true);
27
28 // Big unresolved question here: If we have a ServerWindow, how do we get
29 // back to the WindowTree of the client who owns that ServerWindow? Almost
30 // everything about
31
32 drag_operation_.reset(new CurrentDragOperation(this, ));
33 }
34
35 // Overridden from CurrentDragOperationDelegate:
36 void OnDragOver(bool success) override { NOTIMPLEMENTED(); }
37
38 std::unique_ptr<TestServerWindowDelegate> window_delegate_;
39 std::unique_ptr<ServerWindow> root_window_;
40
41 std::unique_ptr<CurrentDragOperation> drag_operation_;
42 };
43
44 TEST_F(CurrentDragOperation, DragPointerMove) {
45 // Set up a tree with two overlapping windows.
46 TestServerWindowDelegate window_delegate;
47 ServerWindow window(&window_delegate, WindowId(1, 1));
48 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698