OLD | NEW |
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS 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 <algorithm> | 5 #include <algorithm> |
6 #include <cstdarg> | 6 #include <cstdarg> |
7 | 7 |
8 #include <gflags/gflags.h> | 8 #include <gflags/gflags.h> |
9 #include <gtest/gtest.h> | 9 #include <gtest/gtest.h> |
10 | 10 |
11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "window_manager/clutter_interface.h" | 13 #include "window_manager/clutter_interface.h" |
14 #include "window_manager/event_consumer.h" | 14 #include "window_manager/event_consumer.h" |
15 #include "window_manager/layout_manager.h" | 15 #include "window_manager/layout_manager.h" |
16 #include "window_manager/mock_x_connection.h" | 16 #include "window_manager/mock_x_connection.h" |
17 #include "window_manager/panel_bar.h" | 17 #include "window_manager/panel_bar.h" |
18 #include "window_manager/test_lib.h" | 18 #include "window_manager/test_lib.h" |
19 #include "window_manager/util.h" | 19 #include "window_manager/util.h" |
20 #include "window_manager/window.h" | 20 #include "window_manager/window.h" |
21 #include "window_manager/window_manager.h" | 21 #include "window_manager/window_manager.h" |
22 | 22 |
23 DEFINE_bool(logtostderr, false, | 23 DEFINE_bool(logtostderr, false, |
24 "Print debugging messages to stderr (suppressed otherwise)"); | 24 "Print debugging messages to stderr (suppressed otherwise)"); |
25 | 25 |
26 namespace chromeos { | 26 namespace window_manager { |
27 | 27 |
28 class WindowManagerTest : public BasicWindowManagerTest {}; | 28 class WindowManagerTest : public BasicWindowManagerTest {}; |
29 | 29 |
30 class TestEventConsumer : public EventConsumer { | 30 class TestEventConsumer : public EventConsumer { |
31 public: | 31 public: |
32 TestEventConsumer() | 32 TestEventConsumer() |
33 : EventConsumer(), | 33 : EventConsumer(), |
34 num_mapped_windows_(0), | 34 num_mapped_windows_(0), |
35 num_unmapped_windows_(0), | 35 num_unmapped_windows_(0), |
36 num_button_presses_(0) { | 36 num_button_presses_(0) { |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 reparent_event->type = ReparentNotify; | 756 reparent_event->type = ReparentNotify; |
757 reparent_event->window = xid2; | 757 reparent_event->window = xid2; |
758 reparent_event->parent = 324324; // arbitrary number | 758 reparent_event->parent = 324324; // arbitrary number |
759 EXPECT_TRUE(wm_->HandleEvent(&event)); | 759 EXPECT_TRUE(wm_->HandleEvent(&event)); |
760 | 760 |
761 // The properties should be unset. | 761 // The properties should be unset. |
762 TestIntArrayProperty(root_xid, list_atom, 0); | 762 TestIntArrayProperty(root_xid, list_atom, 0); |
763 TestIntArrayProperty(root_xid, stacking_atom, 0); | 763 TestIntArrayProperty(root_xid, stacking_atom, 0); |
764 } | 764 } |
765 | 765 |
766 } // namespace chromeos | 766 } // namespace window_manager |
767 | 767 |
768 int main(int argc, char **argv) { | 768 int main(int argc, char **argv) { |
769 return chromeos::InitAndRunTests(&argc, argv, &FLAGS_logtostderr); | 769 return window_manager::InitAndRunTests(&argc, argv, &FLAGS_logtostderr); |
770 } | 770 } |
OLD | NEW |