OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @implements {settings.ExtensionControlBrowserProxy} | 7 * @implements {settings.ExtensionControlBrowserProxy} |
8 * @extends {settings.TestBrowserProxy} | 8 * @extends {TestBrowserProxy} |
9 */ | 9 */ |
10 function TestExtensionControlBrowserProxy() { | 10 function TestExtensionControlBrowserProxy() { |
11 settings.TestBrowserProxy.call(this, [ | 11 TestBrowserProxy.call(this, [ |
12 'disableExtension', | 12 'disableExtension', |
13 'manageExtension', | 13 'manageExtension', |
14 ]); | 14 ]); |
15 } | 15 } |
16 | 16 |
17 TestExtensionControlBrowserProxy.prototype = { | 17 TestExtensionControlBrowserProxy.prototype = { |
18 __proto__: settings.TestBrowserProxy.prototype, | 18 __proto__: TestBrowserProxy.prototype, |
19 | 19 |
20 /** @override */ | 20 /** @override */ |
21 disableExtension: function(extensionId) { | 21 disableExtension: function(extensionId) { |
22 this.methodCalled('disableExtension', extensionId); | 22 this.methodCalled('disableExtension', extensionId); |
23 }, | 23 }, |
24 | 24 |
25 /** @override */ | 25 /** @override */ |
26 manageExtension: function(extensionId) { | 26 manageExtension: function(extensionId) { |
27 this.methodCalled('manageExtension', extensionId); | 27 this.methodCalled('manageExtension', extensionId); |
28 }, | 28 }, |
29 }; | 29 }; |
OLD | NEW |