OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 #ifndef CHROME_FRAME_TEST_MOCK_WITH_WEB_SERVER_H_ | 4 #ifndef CHROME_FRAME_TEST_MOCK_WITH_WEB_SERVER_H_ |
5 #define CHROME_FRAME_TEST_MOCK_WITH_WEB_SERVER_H_ | 5 #define CHROME_FRAME_TEST_MOCK_WITH_WEB_SERVER_H_ |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "gmock/gmock.h" | 9 #include "gmock/gmock.h" |
10 #include "chrome_frame/chrome_frame_automation.h" | 10 #include "chrome_frame/chrome_frame_automation.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 mock->web_browser2()->get_Top(&actual_top); | 116 mock->web_browser2()->get_Top(&actual_top); |
117 mock->web_browser2()->get_Width(&actual_width); | 117 mock->web_browser2()->get_Width(&actual_width); |
118 mock->web_browser2()->get_Height(&actual_height); | 118 mock->web_browser2()->get_Height(&actual_height); |
119 | 119 |
120 EXPECT_EQ(actual_left, left); | 120 EXPECT_EQ(actual_left, left); |
121 EXPECT_EQ(actual_top, top); | 121 EXPECT_EQ(actual_top, top); |
122 EXPECT_EQ(actual_width, width); | 122 EXPECT_EQ(actual_width, width); |
123 EXPECT_EQ(actual_height, height); | 123 EXPECT_EQ(actual_height, height); |
124 } | 124 } |
125 | 125 |
| 126 ACTION_P4(DelaySendChar, loop, delay, c, mod) { |
| 127 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction( |
| 128 simulate_input::SendCharA, c, mod), delay); |
| 129 } |
| 130 |
126 } // namespace chrome_frame_test | 131 } // namespace chrome_frame_test |
127 | 132 |
128 #endif // CHROME_FRAME_TEST_MOCK_WITH_WEB_SERVER_H_ | 133 #endif // CHROME_FRAME_TEST_MOCK_WITH_WEB_SERVER_H_ |
129 | 134 |
OLD | NEW |