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

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

Issue 1815483003: bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo
Patch Set: MMerge with ToT Created 4 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 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 <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/files/file_path.h" 12 #include "base/files/file_path.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.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/shell_test_configuration.h" 21 #include "content/shell/common/shell_test_configuration.h"
21 #include "v8/include/v8.h" 22 #include "v8/include/v8.h"
22 23
23 class SkBitmap; 24 class SkBitmap;
24 class SkCanvas; 25 class SkCanvas;
25 26
26 namespace base { 27 namespace base {
27 class DictionaryValue; 28 class DictionaryValue;
28 } 29 }
29 30
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 std::string EvaluateInWebInspectorOverlay(const std::string& script) override; 96 std::string EvaluateInWebInspectorOverlay(const std::string& script) override;
96 void ClearAllDatabases() override; 97 void ClearAllDatabases() override;
97 void SetDatabaseQuota(int quota) override; 98 void SetDatabaseQuota(int quota) override;
98 void SimulateWebNotificationClick(const std::string& title, 99 void SimulateWebNotificationClick(const std::string& title,
99 int action_index) override; 100 int action_index) override;
100 void SimulateWebNotificationClose(const std::string& title, 101 void SimulateWebNotificationClose(const std::string& title,
101 bool by_user) override; 102 bool by_user) override;
102 void SetDeviceScaleFactor(float factor) override; 103 void SetDeviceScaleFactor(float factor) override;
103 void SetDeviceColorProfile(const std::string& name) override; 104 void SetDeviceColorProfile(const std::string& name) override;
104 void EnableUseZoomForDSF() override; 105 void EnableUseZoomForDSF() override;
105 void SetBluetoothMockDataSet(const std::string& name) override; 106 void SetBluetoothFakeAdapter(const std::string& adapter_name,
106 void SetBluetoothManualChooser() override; 107 const base::Closure& callback) override;
108 void SetBluetoothManualChooser(bool enable) override;
107 void GetBluetoothManualChooserEvents( 109 void GetBluetoothManualChooserEvents(
108 const base::Callback<void(const std::vector<std::string>&)>& callback) 110 const base::Callback<void(const std::vector<std::string>&)>& callback)
109 override; 111 override;
110 void SendBluetoothManualChooserEvent(const std::string& event, 112 void SendBluetoothManualChooserEvent(const std::string& event,
111 const std::string& argument) override; 113 const std::string& argument) override;
112 void SetGeofencingMockProvider(bool service_available) override; 114 void SetGeofencingMockProvider(bool service_available) override;
113 void ClearGeofencingMockProvider() override; 115 void ClearGeofencingMockProvider() override;
114 void SetGeofencingMockPosition(double latitude, double longitude) override; 116 void SetGeofencingMockPosition(double latitude, double longitude) override;
115 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override; 117 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override;
116 void SetAcceptAllCookies(bool accept) override; 118 void SetAcceptAllCookies(bool accept) override;
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 const std::vector<std::string>& events); 185 const std::vector<std::string>& events);
184 186
185 // After finishing the test, retrieves the audio, text, and pixel dumps from 187 // After finishing the test, retrieves the audio, text, and pixel dumps from
186 // the TestRunner library and sends them to the browser process. 188 // the TestRunner library and sends them to the browser process.
187 void CaptureDump(); 189 void CaptureDump();
188 void OnLayoutDumpCompleted(std::string completed_layout_dump); 190 void OnLayoutDumpCompleted(std::string completed_layout_dump);
189 void CaptureDumpContinued(); 191 void CaptureDumpContinued();
190 void OnPixelsDumpCompleted(const SkBitmap& snapshot); 192 void OnPixelsDumpCompleted(const SkBitmap& snapshot);
191 void CaptureDumpComplete(); 193 void CaptureDumpComplete();
192 194
195 mojom::LayoutTestBluetoothFakeAdapterSetter&
196 GetBluetoothFakeAdapterSetter();
197 mojom::LayoutTestBluetoothFakeAdapterSetterPtr bluetooth_fake_adapter_setter_;
198
193 test_runner::WebTestProxyBase* proxy_; 199 test_runner::WebTestProxyBase* proxy_;
194 200
195 RenderView* focused_view_; 201 RenderView* focused_view_;
196 202
197 test_runner::TestPreferences prefs_; 203 test_runner::TestPreferences prefs_;
198 204
199 ShellTestConfiguration test_config_; 205 ShellTestConfiguration test_config_;
200 206
201 std::vector<int> routing_ids_; 207 std::vector<int> routing_ids_;
202 std::vector<std::vector<PageState> > session_histories_; 208 std::vector<std::vector<PageState> > session_histories_;
203 std::vector<unsigned> current_entry_indexes_; 209 std::vector<unsigned> current_entry_indexes_;
204 210
205 std::deque<base::Callback<void(const std::vector<std::string>&)>> 211 std::deque<base::Callback<void(const std::vector<std::string>&)>>
206 get_bluetooth_events_callbacks_; 212 get_bluetooth_events_callbacks_;
207 213
208 bool is_main_window_; 214 bool is_main_window_;
209 215
210 bool focus_on_next_commit_; 216 bool focus_on_next_commit_;
211 217
212 scoped_ptr<LeakDetector> leak_detector_; 218 scoped_ptr<LeakDetector> leak_detector_;
213 219
214 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); 220 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner);
215 }; 221 };
216 222
217 } // namespace content 223 } // namespace content
218 224
219 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 225 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/common/layout_test/layout_test_messages.h ('k') | content/shell/renderer/layout_test/blink_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698