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

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

Issue 1787743003: Remove unneeded code from WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing accidental reversal of condition in RunModalBeforeUnloadDialog. Created 4 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
« no previous file with comments | « components/test_runner/test_interfaces.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 void SetTestIsRunning(bool); 64 void SetTestIsRunning(bool);
65 bool TestIsRunning() const { return test_is_running_; } 65 bool TestIsRunning() const { return test_is_running_; }
66 66
67 bool UseMockTheme() const { return use_mock_theme_; } 67 bool UseMockTheme() const { return use_mock_theme_; }
68 68
69 void InvokeCallback(scoped_ptr<InvokeCallbackTask> callback); 69 void InvokeCallback(scoped_ptr<InvokeCallbackTask> callback);
70 70
71 // WebTestRunner implementation. 71 // WebTestRunner implementation.
72 bool ShouldGeneratePixelResults() override; 72 bool ShouldGeneratePixelResults() override;
73 bool ShouldStayOnPageAfterHandlingBeforeUnload() const override;
74 bool ShouldDumpAsAudio() const override; 73 bool ShouldDumpAsAudio() const override;
75 void GetAudioData(std::vector<unsigned char>* buffer_view) const override; 74 void GetAudioData(std::vector<unsigned char>* buffer_view) const override;
76 const LayoutDumpFlags& GetLayoutDumpFlags() override; 75 const LayoutDumpFlags& GetLayoutDumpFlags() override;
77 void ReplicateLayoutDumpFlagsChanges( 76 void ReplicateLayoutDumpFlagsChanges(
78 const base::DictionaryValue& changed_values) override; 77 const base::DictionaryValue& changed_values) override;
79 bool HasCustomTextDump(std::string* custom_text_dump) const override; 78 bool HasCustomTextDump(std::string* custom_text_dump) const override;
80 bool ShouldDumpBackForwardList() const override; 79 bool ShouldDumpBackForwardList() const override;
81 blink::WebContentSettingsClient* GetWebContentSettings() const override; 80 blink::WebContentSettingsClient* GetWebContentSettings() const override;
82 81
83 // Methods used by WebTestProxyBase. 82 // Methods used by WebTestProxyBase.
83 bool shouldStayOnPageAfterHandlingBeforeUnload() const;
84 bool shouldDumpSelectionRect() const; 84 bool shouldDumpSelectionRect() const;
85 bool isPrinting() const; 85 bool isPrinting() const;
86 bool shouldDumpAsTextWithPixelResults(); 86 bool shouldDumpAsTextWithPixelResults();
87 bool shouldDumpAsCustomText() const; 87 bool shouldDumpAsCustomText() const;
88 std:: string customDumpText() const; 88 std:: string customDumpText() const;
89 void ShowDevTools(const std::string& settings, 89 void ShowDevTools(const std::string& settings,
90 const std::string& frontend_url); 90 const std::string& frontend_url);
91 void ClearDevToolsLocalStorage(); 91 void ClearDevToolsLocalStorage();
92 void setShouldDumpAsText(bool); 92 void setShouldDumpAsText(bool);
93 void setShouldDumpAsMarkup(bool); 93 void setShouldDumpAsMarkup(bool);
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
813 bool use_mock_theme_; 813 bool use_mock_theme_;
814 814
815 base::WeakPtrFactory<TestRunner> weak_factory_; 815 base::WeakPtrFactory<TestRunner> weak_factory_;
816 816
817 DISALLOW_COPY_AND_ASSIGN(TestRunner); 817 DISALLOW_COPY_AND_ASSIGN(TestRunner);
818 }; 818 };
819 819
820 } // namespace test_runner 820 } // namespace test_runner
821 821
822 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_ 822 #endif // COMPONENTS_TEST_RUNNER_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « components/test_runner/test_interfaces.cc ('k') | components/test_runner/test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698