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

Side by Side Diff: components/test_runner/test_runner.h

Issue 1989103006: Fix event warning crash when a listener is removed while dispatching event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed AtomicString usage Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 6 #define COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <deque> 10 #include <deque>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void setToolTipText(const blink::WebString&); 154 void setToolTipText(const blink::WebString&);
155 void setDragImage(const blink::WebImage& drag_image); 155 void setDragImage(const blink::WebImage& drag_image);
156 bool shouldDumpNavigationPolicy() const; 156 bool shouldDumpNavigationPolicy() const;
157 157
158 bool midiAccessorResult(); 158 bool midiAccessorResult();
159 159
160 // Methods used by MockColorChooser: 160 // Methods used by MockColorChooser:
161 void DidOpenChooser(); 161 void DidOpenChooser();
162 void DidCloseChooser(); 162 void DidCloseChooser();
163 163
164 bool ShouldDumpConsoleMessages() const;
165
164 // A single item in the work queue. 166 // A single item in the work queue.
165 class WorkItem { 167 class WorkItem {
166 public: 168 public:
167 virtual ~WorkItem() {} 169 virtual ~WorkItem() {}
168 170
169 // Returns true if this started a load. 171 // Returns true if this started a load.
170 virtual bool Run(WebTestDelegate*, blink::WebView*) = 0; 172 virtual bool Run(WebTestDelegate*, blink::WebView*) = 0;
171 }; 173 };
172 174
173 private: 175 private:
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 445
444 // This function sets a flag to dump the drag image when the next drag&drop is 446 // This function sets a flag to dump the drag image when the next drag&drop is
445 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel 447 // initiated. It is equivalent to DumpAsTextWithPixelResults but the pixel
446 // results will be the drag image instead of a snapshot of the page. 448 // results will be the drag image instead of a snapshot of the page.
447 void DumpDragImage(); 449 void DumpDragImage();
448 450
449 // Sets a flag that tells the WebTestProxy to dump the default navigation 451 // Sets a flag that tells the WebTestProxy to dump the default navigation
450 // policy passed to the decidePolicyForNavigation callback. 452 // policy passed to the decidePolicyForNavigation callback.
451 void DumpNavigationPolicy(); 453 void DumpNavigationPolicy();
452 454
455 // Controls whether console messages produced by the page are dumped
456 // to test output.
457 void SetDumpConsoleMessages(bool value);
458
453 /////////////////////////////////////////////////////////////////////////// 459 ///////////////////////////////////////////////////////////////////////////
454 // Methods interacting with the WebTestProxy 460 // Methods interacting with the WebTestProxy
455 461
456 /////////////////////////////////////////////////////////////////////////// 462 ///////////////////////////////////////////////////////////////////////////
457 // Methods forwarding to the WebTestDelegate 463 // Methods forwarding to the WebTestDelegate
458 464
459 // Shows DevTools window. 465 // Shows DevTools window.
460 void ShowWebInspector(const std::string& str, 466 void ShowWebInspector(const std::string& str,
461 const std::string& frontend_url); 467 const std::string& frontend_url);
462 void CloseWebInspector(); 468 void CloseWebInspector();
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 std::set<blink::WebWidget*> widgets_with_scheduled_animations_; 638 std::set<blink::WebWidget*> widgets_with_scheduled_animations_;
633 639
634 base::WeakPtrFactory<TestRunner> weak_factory_; 640 base::WeakPtrFactory<TestRunner> weak_factory_;
635 641
636 DISALLOW_COPY_AND_ASSIGN(TestRunner); 642 DISALLOW_COPY_AND_ASSIGN(TestRunner);
637 }; 643 };
638 644
639 } // namespace test_runner 645 } // namespace test_runner
640 646
641 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 647 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/test_runner/layout_test_runtime_flags.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698