OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <atlbase.h> | 5 #include <atlbase.h> |
6 #include <atlapp.h> | 6 #include <atlapp.h> |
7 #include <atlcrack.h> | 7 #include <atlcrack.h> |
8 #include <atlmisc.h> | 8 #include <atlmisc.h> |
9 #include <atlwin.h> | 9 #include <atlwin.h> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
14 #include "testing/gtest/include/gtest/gtest.h" | |
15 #include "testing/gmock/include/gmock/gmock.h" | |
16 #include "chrome_frame/infobars/infobar_content.h" | 14 #include "chrome_frame/infobars/infobar_content.h" |
17 #include "chrome_frame/infobars/internal/displaced_window_manager.h" | 15 #include "chrome_frame/infobars/internal/displaced_window_manager.h" |
18 #include "chrome_frame/infobars/internal/host_window_manager.h" | 16 #include "chrome_frame/infobars/internal/host_window_manager.h" |
19 #include "chrome_frame/infobars/internal/infobar_window.h" | 17 #include "chrome_frame/infobars/internal/infobar_window.h" |
20 #include "chrome_frame/infobars/internal/subclassing_window_with_delegate.h" | 18 #include "chrome_frame/infobars/internal/subclassing_window_with_delegate.h" |
21 #include "chrome_frame/test/chrome_frame_test_utils.h" | 19 #include "chrome_frame/test/chrome_frame_test_utils.h" |
| 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "testing/gtest/include/gtest/gtest.h" |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 RECT kInitialParentWindowRect = {20, 20, 300, 300}; | 25 RECT kInitialParentWindowRect = {20, 20, 300, 300}; |
26 RECT kInitialChildWindowRect = {20, 20, 280, 280}; | 26 RECT kInitialChildWindowRect = {20, 20, 280, 280}; |
27 | 27 |
28 MATCHER_P(EqualRect, expected, "") { | 28 MATCHER_P(EqualRect, expected, "") { |
29 return ::EqualRect(expected, arg); | 29 return ::EqualRect(expected, arg); |
30 } | 30 } |
31 | 31 |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 | 595 |
596 message_loop.RunFor(base::TimeDelta::FromSeconds(10)); | 596 message_loop.RunFor(base::TimeDelta::FromSeconds(10)); |
597 | 597 |
598 window.DestroyWindow(); | 598 window.DestroyWindow(); |
599 | 599 |
600 ASSERT_FALSE(message_loop.WasTimedOut()); | 600 ASSERT_FALSE(message_loop.WasTimedOut()); |
601 } | 601 } |
602 | 602 |
603 // TODO(erikwright): Write test for variations on return from default | 603 // TODO(erikwright): Write test for variations on return from default |
604 // OnNcCalcValidRects | 604 // OnNcCalcValidRects |
OLD | NEW |