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

Side by Side Diff: chrome/test/data/webui/test_browser_proxy.js

Issue 2927653002: WebUI: Move test_browser_proxy.js one level up. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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 cr.define('settings', function() { 5 cr.define('test', function() {
6 /** 6 /**
7 * A base class for all test browser proxies to inherit from. Provides helper 7 * A base class for all test browser proxies to inherit from. Provides helper
8 * methods for allowing tests to track when a method was called. 8 * methods for allowing tests to track when a method was called.
9 * 9 *
10 * Subclasses are responsible for calling |methodCalled|, when a method is 10 * Subclasses are responsible for calling |methodCalled|, when a method is
11 * called, which will trigger callers of |whenCalled| to get notified. 11 * called, which will trigger callers of |whenCalled| to get notified.
12 * For example: 12 * For example:
13 * -------------------------------------------------------------------------- 13 * --------------------------------------------------------------------------
14 * var MyTestBrowserProxy = function() { 14 * var MyTestBrowserProxy = function() {
15 * TestBrowserProxy.call(this, ['myMethod']); 15 * TestBrowserProxy.call(this, ['myMethod']);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 this.resolverMap_.forEach(function(value, methodName) { 80 this.resolverMap_.forEach(function(value, methodName) {
81 this.resolverMap_.set(methodName, new PromiseResolver()); 81 this.resolverMap_.set(methodName, new PromiseResolver());
82 }.bind(this)); 82 }.bind(this));
83 }, 83 },
84 }; 84 };
85 85
86 return { 86 return {
87 TestBrowserProxy: TestBrowserProxy, 87 TestBrowserProxy: TestBrowserProxy,
88 }; 88 };
89 }); 89 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698