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

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: Add gyp 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
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 "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h" 22 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationType.h"
22 #include "v8/include/v8.h" 23 #include "v8/include/v8.h"
23 24
24 class SkBitmap; 25 class SkBitmap;
25 class SkCanvas; 26 class SkCanvas;
26 27
27 namespace base { 28 namespace base {
28 class DictionaryValue; 29 class DictionaryValue;
29 } 30 }
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void ClearAllDatabases() override; 102 void ClearAllDatabases() override;
102 void SetDatabaseQuota(int quota) override; 103 void SetDatabaseQuota(int quota) override;
103 void SimulateWebNotificationClick(const std::string& title, 104 void SimulateWebNotificationClick(const std::string& title,
104 int action_index) override; 105 int action_index) override;
105 void SimulateWebNotificationClose(const std::string& title, 106 void SimulateWebNotificationClose(const std::string& title,
106 bool by_user) override; 107 bool by_user) override;
107 void SetDeviceScaleFactor(float factor) override; 108 void SetDeviceScaleFactor(float factor) override;
108 void SetDeviceColorProfile(const std::string& name) override; 109 void SetDeviceColorProfile(const std::string& name) override;
109 void EnableUseZoomForDSF() override; 110 void EnableUseZoomForDSF() override;
110 void SetBluetoothMockDataSet(const std::string& name) override; 111 void SetBluetoothMockDataSet(const std::string& name) override;
112 void SetBluetoothFakeAdapter(const std::string& adapter_name,
113 const base::Closure& callback) override;
111 void SetBluetoothManualChooser() override; 114 void SetBluetoothManualChooser() override;
112 void GetBluetoothManualChooserEvents( 115 void GetBluetoothManualChooserEvents(
113 const base::Callback<void(const std::vector<std::string>&)>& callback) 116 const base::Callback<void(const std::vector<std::string>&)>& callback)
114 override; 117 override;
115 void SendBluetoothManualChooserEvent(const std::string& event, 118 void SendBluetoothManualChooserEvent(const std::string& event,
116 const std::string& argument) override; 119 const std::string& argument) override;
117 void SetGeofencingMockProvider(bool service_available) override; 120 void SetGeofencingMockProvider(bool service_available) override;
118 void ClearGeofencingMockProvider() override; 121 void ClearGeofencingMockProvider() override;
119 void SetGeofencingMockPosition(double latitude, double longitude) override; 122 void SetGeofencingMockPosition(double latitude, double longitude) override;
120 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override; 123 void SetFocus(test_runner::WebTestProxyBase* proxy, bool focus) override;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 const std::vector<std::string>& events); 194 const std::vector<std::string>& events);
192 195
193 // After finishing the test, retrieves the audio, text, and pixel dumps from 196 // After finishing the test, retrieves the audio, text, and pixel dumps from
194 // the TestRunner library and sends them to the browser process. 197 // the TestRunner library and sends them to the browser process.
195 void CaptureDump(); 198 void CaptureDump();
196 void OnLayoutDumpCompleted(std::string completed_layout_dump); 199 void OnLayoutDumpCompleted(std::string completed_layout_dump);
197 void CaptureDumpContinued(); 200 void CaptureDumpContinued();
198 void OnPixelsDumpCompleted(const SkBitmap& snapshot); 201 void OnPixelsDumpCompleted(const SkBitmap& snapshot);
199 void CaptureDumpComplete(); 202 void CaptureDumpComplete();
200 203
204 mojom::LayoutTestBluetoothFakeAdapterSetterPtr&
205 GetBluetoothFakeAdapterSetter();
206 mojom::LayoutTestBluetoothFakeAdapterSetterPtr bluetooth_fake_adapter_setter_;
207
201 test_runner::WebTestProxyBase* proxy_; 208 test_runner::WebTestProxyBase* proxy_;
202 209
203 RenderView* focused_view_; 210 RenderView* focused_view_;
204 211
205 test_runner::TestPreferences prefs_; 212 test_runner::TestPreferences prefs_;
206 213
207 ShellTestConfiguration test_config_; 214 ShellTestConfiguration test_config_;
208 215
209 std::vector<int> routing_ids_; 216 std::vector<int> routing_ids_;
210 std::vector<std::vector<PageState> > session_histories_; 217 std::vector<std::vector<PageState> > session_histories_;
211 std::vector<unsigned> current_entry_indexes_; 218 std::vector<unsigned> current_entry_indexes_;
212 219
213 std::deque<base::Callback<void(const std::vector<std::string>&)>> 220 std::deque<base::Callback<void(const std::vector<std::string>&)>>
214 get_bluetooth_events_callbacks_; 221 get_bluetooth_events_callbacks_;
215 222
216 bool is_main_window_; 223 bool is_main_window_;
217 224
218 bool focus_on_next_commit_; 225 bool focus_on_next_commit_;
219 226
220 scoped_ptr<LeakDetector> leak_detector_; 227 scoped_ptr<LeakDetector> leak_detector_;
221 228
222 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner); 229 DISALLOW_COPY_AND_ASSIGN(BlinkTestRunner);
223 }; 230 };
224 231
225 } // namespace content 232 } // namespace content
226 233
227 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_ 234 #endif // CONTENT_SHELL_RENDERER_LAYOUT_TEST_BLINK_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698