| 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 #ifndef WINDOW_MANAGER_TEST_LIB_H_ |
| 6 #define WINDOW_MANAGER_TEST_LIB_H_ |
| 7 |
| 5 #include <gtest/gtest.h> | 8 #include <gtest/gtest.h> |
| 6 | 9 |
| 7 extern "C" { | 10 extern "C" { |
| 8 #include <X11/Xlib.h> | 11 #include <X11/Xlib.h> |
| 9 } | 12 } |
| 10 | 13 |
| 11 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
| 12 #include "base/logging.h" | 15 #include "base/logging.h" |
| 13 | 16 |
| 14 typedef ::Atom XAtom; | 17 typedef ::Atom XAtom; |
| 15 typedef ::Window XWindow; | 18 typedef ::Window XWindow; |
| 16 | 19 |
| 17 namespace chromeos { | 20 namespace window_manager { |
| 18 | 21 |
| 19 class MockXConnection; | 22 class MockXConnection; |
| 20 class MockClutterInterface; | 23 class MockClutterInterface; |
| 21 class WindowManager; | 24 class WindowManager; |
| 22 | 25 |
| 23 // Test that two bytes sequences are equal, pretty-printing the difference | 26 // Test that two bytes sequences are equal, pretty-printing the difference |
| 24 // otherwise. Invoke as: | 27 // otherwise. Invoke as: |
| 25 // | 28 // |
| 26 // EXPECT_PRED_FORMAT3(BytesAreEqual, expected, actual, length); | 29 // EXPECT_PRED_FORMAT3(BytesAreEqual, expected, actual, length); |
| 27 // | 30 // |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 // Fetch an int array property on a window and check that it contains the | 79 // Fetch an int array property on a window and check that it contains the |
| 77 // expected values. 'num_values' is the number of expected values passed | 80 // expected values. 'num_values' is the number of expected values passed |
| 78 // as varargs. | 81 // as varargs. |
| 79 void TestIntArrayProperty(XWindow xid, XAtom atom, int num_values, ...); | 82 void TestIntArrayProperty(XWindow xid, XAtom atom, int num_values, ...); |
| 80 | 83 |
| 81 scoped_ptr<MockXConnection> xconn_; | 84 scoped_ptr<MockXConnection> xconn_; |
| 82 scoped_ptr<MockClutterInterface> clutter_; | 85 scoped_ptr<MockClutterInterface> clutter_; |
| 83 scoped_ptr<WindowManager> wm_; | 86 scoped_ptr<WindowManager> wm_; |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace chromeos | 89 } // namespace window_manager |
| 90 |
| 91 #endif |
| OLD | NEW |