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

Side by Side Diff: content/shell/renderer/layout_test/webkit_test_runner.cc

Issue 702593002: bluetooth: Initial simple mock content::WebBluetoothImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: CONTENT_CHILD_BLUETOOTH_WEB_BLUETOOTH_IMPL_H_ Created 6 years, 1 month 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 #include "content/shell/renderer/layout_test/webkit_test_runner.h" 5 #include "content/shell/renderer/layout_test/webkit_test_runner.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <clocale> 8 #include <clocale>
9 #include <cmath> 9 #include <cmath>
10 10
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 } 437 }
438 438
439 void WebKitTestRunner::SetDeviceScaleFactor(float factor) { 439 void WebKitTestRunner::SetDeviceScaleFactor(float factor) {
440 content::SetDeviceScaleFactor(render_view(), factor); 440 content::SetDeviceScaleFactor(render_view(), factor);
441 } 441 }
442 442
443 void WebKitTestRunner::SetDeviceColorProfile(const std::string& name) { 443 void WebKitTestRunner::SetDeviceColorProfile(const std::string& name) {
444 content::SetDeviceColorProfile(render_view(), name); 444 content::SetDeviceColorProfile(render_view(), name);
445 } 445 }
446 446
447 void WebKitTestRunner::SetBluetoothMockDataSet(const std::string& name) {
448 content::SetBluetoothMockDataSetForTesting(name);
449 }
450
447 void WebKitTestRunner::SetFocus(WebTestProxyBase* proxy, bool focus) { 451 void WebKitTestRunner::SetFocus(WebTestProxyBase* proxy, bool focus) {
448 ProxyToRenderViewVisitor visitor(proxy); 452 ProxyToRenderViewVisitor visitor(proxy);
449 RenderView::ForEach(&visitor); 453 RenderView::ForEach(&visitor);
450 if (!visitor.render_view()) { 454 if (!visitor.render_view()) {
451 NOTREACHED(); 455 NOTREACHED();
452 return; 456 return;
453 } 457 }
454 458
455 // Check whether the focused view was closed meanwhile. 459 // Check whether the focused view was closed meanwhile.
456 if (!WebKitTestRunner::Get(focused_view_)) 460 if (!WebKitTestRunner::Get(focused_view_))
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 758
755 leak_detector_->TryLeakDetection(main_frame); 759 leak_detector_->TryLeakDetection(main_frame);
756 } 760 }
757 761
758 void WebKitTestRunner::ReportLeakDetectionResult( 762 void WebKitTestRunner::ReportLeakDetectionResult(
759 const LeakDetectionResult& report) { 763 const LeakDetectionResult& report) {
760 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 764 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
761 } 765 }
762 766
763 } // namespace content 767 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/webkit_test_runner.h ('k') | content/shell/renderer/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698