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

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: Make reply field nullable in .idl files; add test cases for empty and null 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 } 474 }
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(
485 int action_index) { 485 const std::string& title,
486 int action_index,
487 const base::NullableString16& reply) {
486 Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title, 488 Send(new LayoutTestHostMsg_SimulateWebNotificationClick(routing_id(), title,
487 action_index)); 489 action_index, reply));
488 } 490 }
489 491
490 void BlinkTestRunner::SimulateWebNotificationClose(const std::string& title, 492 void BlinkTestRunner::SimulateWebNotificationClose(const std::string& title,
491 bool by_user) { 493 bool by_user) {
492 Send(new LayoutTestHostMsg_SimulateWebNotificationClose(routing_id(), title, 494 Send(new LayoutTestHostMsg_SimulateWebNotificationClose(routing_id(), title,
493 by_user)); 495 by_user));
494 } 496 }
495 497
496 void BlinkTestRunner::SetDeviceScaleFactor(float factor) { 498 void BlinkTestRunner::SetDeviceScaleFactor(float factor) {
497 content::SetDeviceScaleFactor(render_view(), factor); 499 content::SetDeviceScaleFactor(render_view(), factor);
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 void BlinkTestRunner::ReportLeakDetectionResult( 1026 void BlinkTestRunner::ReportLeakDetectionResult(
1025 const LeakDetectionResult& report) { 1027 const LeakDetectionResult& report) {
1026 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1028 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1027 } 1029 }
1028 1030
1029 void BlinkTestRunner::OnDestruct() { 1031 void BlinkTestRunner::OnDestruct() {
1030 delete this; 1032 delete this;
1031 } 1033 }
1032 1034
1033 } // namespace content 1035 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698