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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.h

Issue 2647243002: PaymentApp: Implement PaymentAppProvider for LayoutTest.
Patch Set: PaymentApp: Implement PaymentAppProvider for LayoutTest. Created 3 years, 11 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 CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <memory> 9 #include <memory>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/callback.h" 12 #include "base/callback.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "components/test_runner/test_preferences.h" 15 #include "components/test_runner/test_preferences.h"
16 #include "components/test_runner/web_test_delegate.h" 16 #include "components/test_runner/web_test_delegate.h"
17 #include "content/public/common/page_state.h" 17 #include "content/public/common/page_state.h"
18 #include "content/public/renderer/render_view_observer.h" 18 #include "content/public/renderer/render_view_observer.h"
19 #include "content/public/renderer/render_view_observer_tracker.h" 19 #include "content/public/renderer/render_view_observer_tracker.h"
20 #include "content/shell/common/layout_test/layout_test_bluetooth_fake_adapter_se tter.mojom.h" 20 #include "content/shell/common/layout_test/layout_test_bluetooth_fake_adapter_se tter.mojom.h"
21 #include "content/shell/common/layout_test/layout_test_payment_app_provider.mojo m.h"
21 #include "content/shell/common/shell_test_configuration.h" 22 #include "content/shell/common/shell_test_configuration.h"
22 #include "v8/include/v8.h" 23 #include "v8/include/v8.h"
23 24
24 class SkBitmap; 25 class SkBitmap;
25 26
26 namespace base { 27 namespace base {
27 class DictionaryValue; 28 class DictionaryValue;
28 } 29 }
29 30
30 namespace blink { 31 namespace blink {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void EnableUseZoomForDSF() override; 115 void EnableUseZoomForDSF() override;
115 bool IsUseZoomForDSFEnabled() override; 116 bool IsUseZoomForDSFEnabled() override;
116 void SetBluetoothFakeAdapter(const std::string& adapter_name, 117 void SetBluetoothFakeAdapter(const std::string& adapter_name,
117 const base::Closure& callback) override; 118 const base::Closure& callback) override;
118 void SetBluetoothManualChooser(bool enable) override; 119 void SetBluetoothManualChooser(bool enable) override;
119 void GetBluetoothManualChooserEvents( 120 void GetBluetoothManualChooserEvents(
120 const base::Callback<void(const std::vector<std::string>&)>& callback) 121 const base::Callback<void(const std::vector<std::string>&)>& callback)
121 override; 122 override;
122 void SendBluetoothManualChooserEvent(const std::string& event, 123 void SendBluetoothManualChooserEvent(const std::string& event,
123 const std::string& argument) override; 124 const std::string& argument) override;
125 void GetAllPaymentAppIDs(
126 const base::Callback<void(const std::vector<int64_t>&)>& callback)
127 override;
128 void InvokePaymentApp(int64_t registration_id) override;
124 void SetFocus(blink::WebView* web_view, bool focus) override; 129 void SetFocus(blink::WebView* web_view, bool focus) override;
125 void SetBlockThirdPartyCookies(bool block) override; 130 void SetBlockThirdPartyCookies(bool block) override;
126 std::string PathToLocalResource(const std::string& resource) override; 131 std::string PathToLocalResource(const std::string& resource) override;
127 void SetLocale(const std::string& locale) override; 132 void SetLocale(const std::string& locale) override;
128 void OnLayoutTestRuntimeFlagsChanged( 133 void OnLayoutTestRuntimeFlagsChanged(
129 const base::DictionaryValue& changed_values) override; 134 const base::DictionaryValue& changed_values) override;
130 void TestFinished() override; 135 void TestFinished() override;
131 void CloseRemainingWindows() override; 136 void CloseRemainingWindows() override;
132 void DeleteAllCookies() override; 137 void DeleteAllCookies() override;
133 int NavigationEntryCount() override; 138 int NavigationEntryCount() override;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 void OnLayoutDumpCompleted(std::string completed_layout_dump); 203 void OnLayoutDumpCompleted(std::string completed_layout_dump);
199 void CaptureDumpContinued(); 204 void CaptureDumpContinued();
200 void OnPixelsDumpCompleted(const SkBitmap& snapshot); 205 void OnPixelsDumpCompleted(const SkBitmap& snapshot);
201 void CaptureDumpComplete(); 206 void CaptureDumpComplete();
202 std::string DumpHistoryForWindow(blink::WebView* web_view); 207 std::string DumpHistoryForWindow(blink::WebView* web_view);
203 208
204 mojom::LayoutTestBluetoothFakeAdapterSetter& 209 mojom::LayoutTestBluetoothFakeAdapterSetter&
205 GetBluetoothFakeAdapterSetter(); 210 GetBluetoothFakeAdapterSetter();
206 mojom::LayoutTestBluetoothFakeAdapterSetterPtr bluetooth_fake_adapter_setter_; 211 mojom::LayoutTestBluetoothFakeAdapterSetterPtr bluetooth_fake_adapter_setter_;
207 212
213 mojom::LayoutTestPaymentAppProvider& GetPaymentAppProvider();
214 mojom::LayoutTestPaymentAppProviderPtr payment_app_provider_;
215
208 test_runner::TestPreferences prefs_; 216 test_runner::TestPreferences prefs_;
209 217
210 ShellTestConfiguration test_config_; 218 ShellTestConfiguration test_config_;
211 219
212 std::vector<int> routing_ids_; 220 std::vector<int> routing_ids_;
213 std::vector<std::vector<PageState> > session_histories_; 221 std::vector<std::vector<PageState> > session_histories_;
214 std::vector<unsigned> current_entry_indexes_; 222 std::vector<unsigned> current_entry_indexes_;
215 223
216 std::deque<base::Callback<void(const std::vector<std::string>&)>> 224 std::deque<base::Callback<void(const std::vector<std::string>&)>>
217 get_bluetooth_events_callbacks_; 225 get_bluetooth_events_callbacks_;
218 226
219 bool is_main_window_; 227 bool is_main_window_;
220 228
221 bool focus_on_next_commit_; 229 bool focus_on_next_commit_;
222 230
223 std::unique_ptr<test_runner::AppBannerService> app_banner_service_; 231 std::unique_ptr<test_runner::AppBannerService> app_banner_service_;
224 232
225 std::unique_ptr<LeakDetector> leak_detector_; 233 std::unique_ptr<LeakDetector> leak_detector_;
226 234
227 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); 235 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner);
228 }; 236 };
229 237
230 } // namespace content 238 } // namespace content
231 239
232 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 240 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698