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

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: Nits. 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
« no previous file with comments | « chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
Dan Beam 2017/06/07 01:16:57 why test.Test?
dpapad 2017/06/07 01:19:10 As opposed to what? A different namespace? No name
Dan Beam 2017/06/07 01:33:50 arguably, this is "testing" code. as in: it's not
dpapad 2017/06/07 03:23:08 Done.
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
« no previous file with comments | « chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698