| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 | 4 |
| 5 #ifndef CHROME_FRAME_TEST_MOCK_IE_EVENT_SINK_ACTIONS_H_ | 5 #ifndef CHROME_FRAME_TEST_MOCK_IE_EVENT_SINK_ACTIONS_H_ |
| 6 #define CHROME_FRAME_TEST_MOCK_IE_EVENT_SINK_ACTIONS_H_ | 6 #define CHROME_FRAME_TEST_MOCK_IE_EVENT_SINK_ACTIONS_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/threading/platform_thread.h" | 12 #include "base/threading/platform_thread.h" |
| 13 #include "base/time.h" | 13 #include "base/time.h" |
| 14 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
| 15 #include "chrome_frame/test/chrome_frame_test_utils.h" | 15 #include "chrome_frame/test/chrome_frame_test_utils.h" |
| 16 #include "chrome_frame/test/chrome_frame_ui_test_utils.h" | 16 #include "chrome_frame/test/chrome_frame_ui_test_utils.h" |
| 17 #include "chrome_frame/test/ie_event_sink.h" | 17 #include "chrome_frame/test/ie_event_sink.h" |
| 18 #include "chrome_frame/test/mock_ie_event_sink_test.h" | 18 #include "chrome_frame/test/mock_ie_event_sink_test.h" |
| 19 #include "chrome_frame/test/simulate_input.h" | 19 #include "chrome_frame/test/simulate_input.h" |
| 20 #include "gfx/point.h" | |
| 21 #include "gfx/rect.h" | |
| 22 #include "testing/gmock/include/gmock/gmock.h" | 20 #include "testing/gmock/include/gmock/gmock.h" |
| 21 #include "ui/gfx/point.h" |
| 22 #include "ui/gfx/rect.h" |
| 23 | 23 |
| 24 namespace chrome_frame_test { | 24 namespace chrome_frame_test { |
| 25 | 25 |
| 26 MATCHER_P(UrlPathEq, url, "equals the path and query portion of the url") { | 26 MATCHER_P(UrlPathEq, url, "equals the path and query portion of the url") { |
| 27 return arg == chrome_frame_test::GetPathAndQueryFromUrl(url); | 27 return arg == chrome_frame_test::GetPathAndQueryFromUrl(url); |
| 28 } | 28 } |
| 29 | 29 |
| 30 MATCHER_P(AccSatisfies, matcher, "satisfies the given AccObjectMatcher") { | 30 MATCHER_P(AccSatisfies, matcher, "satisfies the given AccObjectMatcher") { |
| 31 return matcher.DoesMatch(arg); | 31 return matcher.DoesMatch(arg); |
| 32 } | 32 } |
| (...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 next_delay = next_delay + kInterval; | 399 next_delay = next_delay + kInterval; |
| 400 | 400 |
| 401 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction( | 401 loop->PostDelayedTask(FROM_HERE, NewRunnableFunction( |
| 402 simulate_input::SendCharA, VK_RETURN, simulate_input::NONE), | 402 simulate_input::SendCharA, VK_RETURN, simulate_input::NONE), |
| 403 next_delay); | 403 next_delay); |
| 404 } | 404 } |
| 405 | 405 |
| 406 } // namespace chrome_frame_test | 406 } // namespace chrome_frame_test |
| 407 | 407 |
| 408 #endif // CHROME_FRAME_TEST_MOCK_IE_EVENT_SINK_ACTIONS_H_ | 408 #endif // CHROME_FRAME_TEST_MOCK_IE_EVENT_SINK_ACTIONS_H_ |
| OLD | NEW |