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

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

Issue 1169493003: Turn test runner library into an actual component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 years, 6 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/web_test_runner.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after
674 main_frame->willShowInstallBannerPrompt(request_id, blink_event_platforms, 674 main_frame->willShowInstallBannerPrompt(request_id, blink_event_platforms,
675 &reply); 675 &reply);
676 676
677 callback.Run(reply == blink::WebAppBannerPromptReply::Cancel); 677 callback.Run(reply == blink::WebAppBannerPromptReply::Cancel);
678 } 678 }
679 679
680 void BlinkTestRunner::ResolveBeforeInstallPromptPromise( 680 void BlinkTestRunner::ResolveBeforeInstallPromptPromise(
681 int request_id, const std::string& platform) { 681 int request_id, const std::string& platform) {
682 test_runner::WebTestInterfaces* interfaces = 682 test_runner::WebTestInterfaces* interfaces =
683 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces(); 683 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces();
684 interfaces->GetTestInterfaces()->GetAppBannerClient()->ResolvePromise( 684 interfaces->GetAppBannerClient()->ResolvePromise(request_id, platform);
685 request_id, platform);
686 } 685 }
687 686
688 blink::WebPlugin* BlinkTestRunner::CreatePluginPlaceholder( 687 blink::WebPlugin* BlinkTestRunner::CreatePluginPlaceholder(
689 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) { 688 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) {
690 if (params.mimeType == "application/x-plugin-placeholder-test") 689 if (params.mimeType == "application/x-plugin-placeholder-test")
691 return (new TestPluginPlaceholder(frame, params))->plugin(); 690 return (new TestPluginPlaceholder(frame, params))->plugin();
692 return 0; 691 return 0;
693 } 692 }
694 693
695 // RenderViewObserver -------------------------------------------------------- 694 // RenderViewObserver --------------------------------------------------------
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
887 886
888 leak_detector_->TryLeakDetection(main_frame); 887 leak_detector_->TryLeakDetection(main_frame);
889 } 888 }
890 889
891 void BlinkTestRunner::ReportLeakDetectionResult( 890 void BlinkTestRunner::ReportLeakDetectionResult(
892 const LeakDetectionResult& report) { 891 const LeakDetectionResult& report) {
893 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 892 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
894 } 893 }
895 894
896 } // namespace content 895 } // namespace content
OLDNEW
« no previous file with comments | « components/test_runner/web_test_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698