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

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

Issue 2403893002: Add layout test for reply property of notificationclick event (Closed)
Patch Set: Add layout test for reply property of notificationclick event Created 4 years, 2 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 #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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 475
476 void BlinkTestRunner::ClearAllDatabases() { 476 void BlinkTestRunner::ClearAllDatabases() {
477 Send(new LayoutTestHostMsg_ClearAllDatabases(routing_id())); 477 Send(new LayoutTestHostMsg_ClearAllDatabases(routing_id()));
478 } 478 }
479 479
480 void BlinkTestRunner::SetDatabaseQuota(int quota) { 480 void BlinkTestRunner::SetDatabaseQuota(int quota) {
481 Send(new LayoutTestHostMsg_SetDatabaseQuota(routing_id(), quota)); 481 Send(new LayoutTestHostMsg_SetDatabaseQuota(routing_id(), quota));
482 } 482 }
483 483
484 void BlinkTestRunner::SimulateWebNotificationClick(const std::string& title, 484 void BlinkTestRunner::SimulateWebNotificationClick(const std::string& title,
485 int action_index) { 485 int action_index,
486 const std::string& reply) {
486 Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title, 487 Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title,
487 action_index)); 488 action_index, reply));
488 } 489 }
489 490
490 void BlinkTestRunner::SimulateWebNotificationClose(const std::string& title, 491 void BlinkTestRunner::SimulateWebNotificationClose(const std::string& title,
491 bool by_user) { 492 bool by_user) {
492 Send(new LayoutTestHostMsg_SimulateWebNotificationClose(routing_id(), title, 493 Send(new LayoutTestHostMsg_SimulateWebNotificationClose(routing_id(), title,
493 by_user)); 494 by_user));
494 } 495 }
495 496
496 void BlinkTestRunner::SetDeviceScaleFactor(float factor) { 497 void BlinkTestRunner::SetDeviceScaleFactor(float factor) {
497 content::SetDeviceScaleFactor(render_view(), factor); 498 content::SetDeviceScaleFactor(render_view(), factor);
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 void BlinkTestRunner::ReportLeakDetectionResult( 1025 void BlinkTestRunner::ReportLeakDetectionResult(
1025 const LeakDetectionResult& report) { 1026 const LeakDetectionResult& report) {
1026 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1027 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1027 } 1028 }
1028 1029
1029 void BlinkTestRunner::OnDestruct() { 1030 void BlinkTestRunner::OnDestruct() {
1030 delete this; 1031 delete this;
1031 } 1032 }
1032 1033
1033 } // namespace content 1034 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698