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_++; |