Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(757)

Side by Side Diff: chrome_frame/test/test_mock_with_web_server.h

Issue 2866013: The ChromeFrame JavascriptWindowOpen test tries to open a popup in the onload... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome_frame/test/no_interference_test.cc ('k') | chrome_frame/test/test_mock_with_web_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698