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

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

Issue 10019015: Update uses of TimeDelta in chrome_frame/*. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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
OLDNEW
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 #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 <algorithm> 9 #include <algorithm>
10 #include <string> 10 #include <string>
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 } // namespace 304 } // namespace
305 305
306 ACTION(DoCloseWindow) { 306 ACTION(DoCloseWindow) {
307 DoCloseWindowNow(arg0); 307 DoCloseWindowNow(arg0);
308 } 308 }
309 309
310 ACTION_P(DelayDoCloseWindow, delay) { 310 ACTION_P(DelayDoCloseWindow, delay) {
311 DCHECK(MessageLoop::current()); 311 DCHECK(MessageLoop::current());
312 MessageLoop::current()->PostDelayedTask( 312 MessageLoop::current()->PostDelayedTask(
313 FROM_HERE, base::Bind(DoCloseWindowNow, arg0), delay); 313 FROM_HERE, base::Bind(DoCloseWindowNow, arg0),
314 base::TimeDelta::FromMilliseconds(delay));
ananta 2012/04/13 17:50:21 Please verify whether the tests specify this timeo
314 } 315 }
315 316
316 ACTION(KillChromeFrameProcesses) { 317 ACTION(KillChromeFrameProcesses) {
317 KillAllNamedProcessesWithArgument( 318 KillAllNamedProcessesWithArgument(
318 UTF8ToWide(chrome_frame_test::kChromeImageName), 319 UTF8ToWide(chrome_frame_test::kChromeImageName),
319 UTF8ToWide(switches::kChromeFrame)); 320 UTF8ToWide(switches::kChromeFrame));
320 } 321 }
321 322
322 // Verifying actions 323 // Verifying actions
323 ACTION_P(AccExpect, matcher) { 324 ACTION_P(AccExpect, matcher) {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 440
440 loop->PostDelayedTask( 441 loop->PostDelayedTask(
441 FROM_HERE, 442 FROM_HERE,
442 base::Bind(simulate_input::SendCharA, VK_RETURN, simulate_input::NONE), 443 base::Bind(simulate_input::SendCharA, VK_RETURN, simulate_input::NONE),
443 next_delay); 444 next_delay);
444 } 445 }
445 446
446 } // namespace chrome_frame_test 447 } // namespace chrome_frame_test
447 448
448 #endif // CHROME_FRAME_TEST_MOCK_IE_EVENT_SINK_ACTIONS_H_ 449 #endif // CHROME_FRAME_TEST_MOCK_IE_EVENT_SINK_ACTIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698