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

Side by Side Diff: content/shell/renderer/test_runner/TestRunner.h

Issue 200663002: Add 'waitUntilExternalURLLoad' method to TestRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add OVERRIDE to overrides. Created 6 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 /* 5 /*
6 * Copyright (C) 2010 Google Inc. All rights reserved. 6 * Copyright (C) 2010 Google Inc. All rights reserved.
7 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org) 7 * Copyright (C) 2010 Pawel Hajdan (phajdan.jr@chromium.org)
8 * Copyright (C) 2012 Apple Inc. All Rights Reserved. 8 * Copyright (C) 2012 Apple Inc. All Rights Reserved.
9 * 9 *
10 * Redistribution and use in source and binary forms, with or without 10 * Redistribution and use in source and binary forms, with or without
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool shouldStayOnPageAfterHandlingBeforeUnload() const; 131 bool shouldStayOnPageAfterHandlingBeforeUnload() const;
132 const std::set<std::string>* httpHeadersToClear() const; 132 const std::set<std::string>* httpHeadersToClear() const;
133 void setTopLoadingFrame(blink::WebFrame*, bool); 133 void setTopLoadingFrame(blink::WebFrame*, bool);
134 blink::WebFrame* topLoadingFrame() const; 134 blink::WebFrame* topLoadingFrame() const;
135 void policyDelegateDone(); 135 void policyDelegateDone();
136 bool policyDelegateEnabled() const; 136 bool policyDelegateEnabled() const;
137 bool policyDelegateIsPermissive() const; 137 bool policyDelegateIsPermissive() const;
138 bool policyDelegateShouldNotifyDone() const; 138 bool policyDelegateShouldNotifyDone() const;
139 bool shouldInterceptPostMessage() const; 139 bool shouldInterceptPostMessage() const;
140 bool shouldDumpResourcePriorities() const; 140 bool shouldDumpResourcePriorities() const;
141 bool shouldWaitUntilExternURLLoad() const;
141 blink::WebNotificationPresenter* notification_presenter() const; 142 blink::WebNotificationPresenter* notification_presenter() const;
142 bool requestPointerLock(); 143 bool requestPointerLock();
143 void requestPointerUnlock(); 144 void requestPointerUnlock();
144 bool isPointerLocked(); 145 bool isPointerLocked();
145 void setToolTipText(const blink::WebString&); 146 void setToolTipText(const blink::WebString&);
146 147
147 bool midiAccessorResult(); 148 bool midiAccessorResult();
148 149
149 // A single item in the work queue. 150 // A single item in the work queue.
150 class WorkItem { 151 class WorkItem {
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 void setWillSendRequestClearHeader(const CppArgumentList&, CppVariant*); 434 void setWillSendRequestClearHeader(const CppArgumentList&, CppVariant*);
434 435
435 // This function sets a flag that tells the test_shell to dump a descriptive 436 // This function sets a flag that tells the test_shell to dump a descriptive
436 // line for each resource load's priority and any time that priority 437 // line for each resource load's priority and any time that priority
437 // changes. It takes no arguments, and ignores any that may be present. 438 // changes. It takes no arguments, and ignores any that may be present.
438 void dumpResourceRequestPriorities(const CppArgumentList&, CppVariant*); 439 void dumpResourceRequestPriorities(const CppArgumentList&, CppVariant*);
439 440
440 // Sets a flag to enable the mock theme. 441 // Sets a flag to enable the mock theme.
441 void setUseMockTheme(const CppArgumentList&, CppVariant*); 442 void setUseMockTheme(const CppArgumentList&, CppVariant*);
442 443
444 // Sets a flag that causes the test to be marked as completed when the
445 // WebFrameClient receives a loadURLExternally() call.
446 void waitUntilExternalURLLoad(const CppArgumentList&, CppVariant*);
447
443 /////////////////////////////////////////////////////////////////////////// 448 ///////////////////////////////////////////////////////////////////////////
444 // Methods interacting with the WebTestProxy 449 // Methods interacting with the WebTestProxy
445 450
446 /////////////////////////////////////////////////////////////////////////// 451 ///////////////////////////////////////////////////////////////////////////
447 // Methods forwarding to the WebTestDelegate 452 // Methods forwarding to the WebTestDelegate
448 453
449 // Shows DevTools window. 454 // Shows DevTools window.
450 void showWebInspector(const CppArgumentList&, CppVariant*); 455 void showWebInspector(const CppArgumentList&, CppVariant*);
451 void closeWebInspector(const CppArgumentList&, CppVariant*); 456 void closeWebInspector(const CppArgumentList&, CppVariant*);
452 457
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 // If true, layout is to target printed pages. 698 // If true, layout is to target printed pages.
694 bool m_isPrinting; 699 bool m_isPrinting;
695 700
696 // If false, MockWebMIDIAccessor fails on startSession() for testing. 701 // If false, MockWebMIDIAccessor fails on startSession() for testing.
697 bool m_midiAccessorResult; 702 bool m_midiAccessorResult;
698 703
699 bool m_shouldStayOnPageAfterHandlingBeforeUnload; 704 bool m_shouldStayOnPageAfterHandlingBeforeUnload;
700 705
701 bool m_shouldDumpResourcePriorities; 706 bool m_shouldDumpResourcePriorities;
702 707
708 // If true, ends the test when an external URL is loaded.
709 bool m_shouldWaitUntilExternalURLLoad;
710
703 std::set<std::string> m_httpHeadersToClear; 711 std::set<std::string> m_httpHeadersToClear;
704 712
705 // WAV audio data is stored here. 713 // WAV audio data is stored here.
706 blink::WebArrayBufferView m_audioData; 714 blink::WebArrayBufferView m_audioData;
707 715
708 // Used for test timeouts. 716 // Used for test timeouts.
709 WebTaskList m_taskList; 717 WebTaskList m_taskList;
710 718
711 TestInterfaces* m_testInterfaces; 719 TestInterfaces* m_testInterfaces;
712 WebTestDelegate* m_delegate; 720 WebTestDelegate* m_delegate;
(...skipping 14 matching lines...) Expand all
727 PointerLockWillSucceed, 735 PointerLockWillSucceed,
728 PointerLockWillRespondAsync, 736 PointerLockWillRespondAsync,
729 PointerLockWillFailSync, 737 PointerLockWillFailSync,
730 } m_pointerLockPlannedResult; 738 } m_pointerLockPlannedResult;
731 bool m_useMockTheme; 739 bool m_useMockTheme;
732 }; 740 };
733 741
734 } 742 }
735 743
736 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTRUNNER_H_ 744 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_TESTRUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698