| 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 <gflags/gflags.h> | 5 #include <gflags/gflags.h> |
| 6 #include <gtest/gtest.h> | 6 #include <gtest/gtest.h> |
| 7 | 7 |
| 8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "window_manager/clutter_interface.h" | 10 #include "window_manager/clutter_interface.h" |
| 11 #include "window_manager/layout_manager.h" | 11 #include "window_manager/layout_manager.h" |
| 12 #include "window_manager/mock_x_connection.h" | 12 #include "window_manager/mock_x_connection.h" |
| 13 #include "window_manager/stacking_manager.h" | 13 #include "window_manager/stacking_manager.h" |
| 14 #include "window_manager/test_lib.h" | 14 #include "window_manager/test_lib.h" |
| 15 #include "window_manager/util.h" | 15 #include "window_manager/util.h" |
| 16 #include "window_manager/window.h" | 16 #include "window_manager/window.h" |
| 17 #include "window_manager/window_manager.h" | 17 #include "window_manager/window_manager.h" |
| 18 #include "window_manager/wm_ipc.h" | 18 #include "window_manager/wm_ipc.h" |
| 19 | 19 |
| 20 DEFINE_bool(logtostderr, false, | 20 DEFINE_bool(logtostderr, false, |
| 21 "Print debugging messages to stderr (suppressed otherwise)"); | 21 "Print debugging messages to stderr (suppressed otherwise)"); |
| 22 | 22 |
| 23 namespace chromeos { | 23 namespace window_manager { |
| 24 | 24 |
| 25 class LayoutManagerTest : public BasicWindowManagerTest { | 25 class LayoutManagerTest : public BasicWindowManagerTest { |
| 26 protected: | 26 protected: |
| 27 virtual void SetUp() { | 27 virtual void SetUp() { |
| 28 BasicWindowManagerTest::SetUp(); | 28 BasicWindowManagerTest::SetUp(); |
| 29 lm_ = wm_->layout_manager_.get(); | 29 lm_ = wm_->layout_manager_.get(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 LayoutManager* lm_; // points to wm_'s copy | 32 LayoutManager* lm_; // points to wm_'s copy |
| 33 }; | 33 }; |
| (...skipping 685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 | 719 |
| 720 MockClutterInterface::StageActor* stage = clutter_->GetDefaultStage(); | 720 MockClutterInterface::StageActor* stage = clutter_->GetDefaultStage(); |
| 721 Window* win = wm_->GetWindow(xid); | 721 Window* win = wm_->GetWindow(xid); |
| 722 ASSERT_TRUE(win != NULL); | 722 ASSERT_TRUE(win != NULL); |
| 723 EXPECT_LT(stage->GetStackingIndex(toplevel_stacking_actor), | 723 EXPECT_LT(stage->GetStackingIndex(toplevel_stacking_actor), |
| 724 stage->GetStackingIndex(win->actor())); | 724 stage->GetStackingIndex(win->actor())); |
| 725 EXPECT_LT(stage->GetStackingIndex(win->actor()), | 725 EXPECT_LT(stage->GetStackingIndex(win->actor()), |
| 726 stage->GetStackingIndex(lower_stacking_actor)); | 726 stage->GetStackingIndex(lower_stacking_actor)); |
| 727 } | 727 } |
| 728 | 728 |
| 729 } // namespace chromeos | 729 } // namespace window_manager |
| 730 | 730 |
| 731 int main(int argc, char **argv) { | 731 int main(int argc, char **argv) { |
| 732 return chromeos::InitAndRunTests(&argc, argv, &FLAGS_logtostderr); | 732 return window_manager::InitAndRunTests(&argc, argv, &FLAGS_logtostderr); |
| 733 } | 733 } |
| OLD | NEW |