| 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/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "window_manager/mock_x_connection.h" | 10 #include "window_manager/mock_x_connection.h" |
| 11 #include "window_manager/test_lib.h" | 11 #include "window_manager/test_lib.h" |
| 12 #include "window_manager/util.h" | 12 #include "window_manager/util.h" |
| 13 #include "window_manager/shadow.h" | 13 #include "window_manager/shadow.h" |
| 14 #include "window_manager/stacking_manager.h" | 14 #include "window_manager/stacking_manager.h" |
| 15 #include "window_manager/window.h" | 15 #include "window_manager/window.h" |
| 16 #include "window_manager/window_manager.h" | 16 #include "window_manager/window_manager.h" |
| 17 | 17 |
| 18 DEFINE_bool(logtostderr, false, | 18 DEFINE_bool(logtostderr, false, |
| 19 "Print debugging messages to stderr (suppressed otherwise)"); | 19 "Print debugging messages to stderr (suppressed otherwise)"); |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace window_manager { |
| 22 | 22 |
| 23 class StackingManagerTest : public BasicWindowManagerTest { | 23 class StackingManagerTest : public BasicWindowManagerTest { |
| 24 protected: | 24 protected: |
| 25 virtual void SetUp() { | 25 virtual void SetUp() { |
| 26 BasicWindowManagerTest::SetUp(); | 26 BasicWindowManagerTest::SetUp(); |
| 27 stacking_manager_ = wm_->stacking_manager(); | 27 stacking_manager_ = wm_->stacking_manager(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 StackingManager* stacking_manager_; // points at wm_'s object | 30 StackingManager* stacking_manager_; // points at wm_'s object |
| 31 }; | 31 }; |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 EXPECT_LT(stage->GetStackingIndex(win.actor()), | 113 EXPECT_LT(stage->GetStackingIndex(win.actor()), |
| 114 stage->GetStackingIndex(win2.actor())); | 114 stage->GetStackingIndex(win2.actor())); |
| 115 EXPECT_LT(stage->GetStackingIndex(win.actor()), | 115 EXPECT_LT(stage->GetStackingIndex(win.actor()), |
| 116 stage->GetStackingIndex(win.shadow()->group())); | 116 stage->GetStackingIndex(win.shadow()->group())); |
| 117 EXPECT_LT(stage->GetStackingIndex(win.shadow()->group()), | 117 EXPECT_LT(stage->GetStackingIndex(win.shadow()->group()), |
| 118 stage->GetStackingIndex(win2.actor())); | 118 stage->GetStackingIndex(win2.actor())); |
| 119 EXPECT_LT(stage->GetStackingIndex(win2.actor()), | 119 EXPECT_LT(stage->GetStackingIndex(win2.actor()), |
| 120 stage->GetStackingIndex(win2.shadow()->group())); | 120 stage->GetStackingIndex(win2.shadow()->group())); |
| 121 } | 121 } |
| 122 | 122 |
| 123 } // namespace chromeos | 123 } // namespace window_manager |
| 124 | 124 |
| 125 int main(int argc, char** argv) { | 125 int main(int argc, char** argv) { |
| 126 return chromeos::InitAndRunTests(&argc, argv, &FLAGS_logtostderr); | 126 return window_manager::InitAndRunTests(&argc, argv, &FLAGS_logtostderr); |
| 127 } | 127 } |
| OLD | NEW |