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

Unified Diff: chrome/test/data/webui/print_preview/native_layer_stub.js

Issue 2920153004: Print Preview: Change getPrivetPrinters to cr.sendWithPromise (Closed)
Patch Set: Fix closure compile error Created 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/print_preview/native_layer_stub.js
diff --git a/chrome/test/data/webui/print_preview/native_layer_stub.js b/chrome/test/data/webui/print_preview/native_layer_stub.js
index 157111a391ef2f59ab3f36368813f837388ec413..52f26306938a4dad9ad3b7f2b5ea75f7608aa958 100644
--- a/chrome/test/data/webui/print_preview/native_layer_stub.js
+++ b/chrome/test/data/webui/print_preview/native_layer_stub.js
@@ -14,6 +14,7 @@ cr.define('print_preview', function() {
'getInitialSettings',
'getPrinters',
'getExtensionPrinters',
+ 'getPrivetPrinters',
'setupPrinter'
]);
@@ -90,6 +91,12 @@ cr.define('print_preview', function() {
return Promise.resolve(true);
},
+ /** @override */
+ getPrivetPrinters: function() {
+ this.methodCalled('getPrivetPrinters');
+ return Promise.resolve(true);
+ },
+
/** @override */
setupPrinter: function(printerId) {
this.methodCalled('setupPrinter', printerId);
@@ -100,8 +107,6 @@ cr.define('print_preview', function() {
/** Stubs for |print_preview.NativeLayer| methods that call C++ handlers. */
previewReadyForTest: function() {},
- startGetLocalDestinations: function() {},
- startGetPrivetDestinations: function() {},
startGetLocalDestinationCapabilities: function(destinationId) {
if (destinationId == this.destinationToWatch_)
this.getLocalDestinationCapabilitiesCallCount_++;

Powered by Google App Engine
This is Rietveld 408576698