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

Side by Side Diff: components/mus/ws/window_tree_unittest.cc

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/mus/ws/window_tree.h" 5 #include "components/mus/ws/window_tree.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 17 matching lines...) Expand all
28 #include "components/mus/ws/test_server_window_delegate.h" 28 #include "components/mus/ws/test_server_window_delegate.h"
29 #include "components/mus/ws/test_utils.h" 29 #include "components/mus/ws/test_utils.h"
30 #include "components/mus/ws/window_manager_access_policy.h" 30 #include "components/mus/ws/window_manager_access_policy.h"
31 #include "components/mus/ws/window_server.h" 31 #include "components/mus/ws/window_server.h"
32 #include "components/mus/ws/window_server_delegate.h" 32 #include "components/mus/ws/window_server_delegate.h"
33 #include "components/mus/ws/window_tree_binding.h" 33 #include "components/mus/ws/window_tree_binding.h"
34 #include "services/shell/public/interfaces/connector.mojom.h" 34 #include "services/shell/public/interfaces/connector.mojom.h"
35 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
36 #include "ui/events/event.h" 36 #include "ui/events/event.h"
37 #include "ui/events/event_utils.h" 37 #include "ui/events/event_utils.h"
38 #include "ui/gfx/geometry/mojo/geometry_type_converters.h"
39 #include "ui/gfx/geometry/rect.h" 38 #include "ui/gfx/geometry/rect.h"
40 39
41 namespace mus { 40 namespace mus {
42 namespace ws { 41 namespace ws {
43 namespace test { 42 namespace test {
44 namespace { 43 namespace {
45 44
46 std::string WindowIdToString(const WindowId& id) { 45 std::string WindowIdToString(const WindowId& id) {
47 return base::StringPrintf("%d,%d", id.client_id, id.window_id); 46 return base::StringPrintf("%d,%d", id.client_id, id.window_id);
48 } 47 }
(...skipping 946 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 ASSERT_NE(new_opacity, unknown_window.opacity()); 994 ASSERT_NE(new_opacity, unknown_window.opacity());
996 995
997 EXPECT_FALSE(tree->SetWindowOpacity( 996 EXPECT_FALSE(tree->SetWindowOpacity(
998 ClientWindowId(WindowIdToTransportId(window_id)), new_opacity)); 997 ClientWindowId(WindowIdToTransportId(window_id)), new_opacity));
999 EXPECT_NE(new_opacity, unknown_window.opacity()); 998 EXPECT_NE(new_opacity, unknown_window.opacity());
1000 } 999 }
1001 1000
1002 } // namespace test 1001 } // namespace test
1003 } // namespace ws 1002 } // namespace ws
1004 } // namespace mus 1003 } // namespace mus
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698