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 92f9f29e15bce49e8e81b90e8cdf97e6e48b2133..157111a391ef2f59ab3f36368813f837388ec413 100644 |
--- a/chrome/test/data/webui/print_preview/native_layer_stub.js |
+++ b/chrome/test/data/webui/print_preview/native_layer_stub.js |
@@ -9,8 +9,13 @@ cr.define('print_preview', function() { |
* @extends {settings.TestBrowserProxy} |
*/ |
function NativeLayerStub() { |
- settings.TestBrowserProxy.call(this, [ |
- 'getInitialSettings', 'getPrinters', 'setupPrinter' ]); |
+ settings.TestBrowserProxy.call(this, |
+ [ |
+ 'getInitialSettings', |
+ 'getPrinters', |
+ 'getExtensionPrinters', |
+ 'setupPrinter' |
+ ]); |
/** |
* @private {!cr.EventTarget} The event target used for dispatching and |
@@ -79,6 +84,12 @@ cr.define('print_preview', function() { |
return Promise.resolve(this.localDestinationInfos_); |
}, |
+ /** @override */ |
+ getExtensionPrinters: function() { |
+ this.methodCalled('getExtensionPrinters'); |
+ return Promise.resolve(true); |
+ }, |
+ |
/** @override */ |
setupPrinter: function(printerId) { |
this.methodCalled('setupPrinter', printerId); |
@@ -91,7 +102,6 @@ cr.define('print_preview', function() { |
previewReadyForTest: function() {}, |
startGetLocalDestinations: function() {}, |
startGetPrivetDestinations: function() {}, |
- startGetExtensionDestinations: function() {}, |
startGetLocalDestinationCapabilities: function(destinationId) { |
if (destinationId == this.destinationToWatch_) |
this.getLocalDestinationCapabilitiesCallCount_++; |