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

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

Issue 2920153004: Print Preview: Change getPrivetPrinters to cr.sendWithPromise (Closed)
Patch Set: Change notation 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
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4e35e6b1382f1a2bf5f2575e1b41d183b5ec8a74..51f80161229a7f14b40c7e72ba11eb07f7062c4f 100644
--- a/chrome/test/data/webui/print_preview/native_layer_stub.js
+++ b/chrome/test/data/webui/print_preview/native_layer_stub.js
@@ -13,6 +13,7 @@ cr.define('print_preview', function() {
'getInitialSettings',
'getPrinters',
'getExtensionPrinters',
+ 'getPrivetPrinters',
'setupPrinter'
]);
@@ -89,6 +90,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);
@@ -99,8 +106,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_++;
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698