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

Side by Side Diff: trunk/src/chrome/renderer/resources/extensions/notifications_test_util.js

Issue 296113009: Revert 272211 "Allow high-res bitmaps to be passed in from notif..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // NotificationsTestUtil contains stubs for the global classes and
6 // variables used by notifications_custom_bindings.js that are not
7 // available with gtestjs tests.
8 var require = function(library) {
9 return {
10 binding: {
11 'Binding': {
12 'create': function () {
13 return {
14 registerCustomHook: function () {},
15 generate: function () {}
16 };
17 }
18 }
19 },
20 sendRequest: {
21 sendRequest: function () {}
22 },
23 }[library];
24 };
25
26 var requireNative = function(library) {
27 return {
28 notifications_private: {
29 GetNotificationImageSizes: function () {
30 return {
31 scaleFactor: 0,
32 icon: { width: 0, height: 0 },
33 image: { width: 0, height: 0 },
34 buttonIcon: { width: 0, height: 0}
35 };
36 }
37 }
38 }[library];
39 }
40
41 var exports = {};
42
43 var $Array = {
44 push: function (ary, val) {
45 ary.push(val);
46 }
47 };
48
49 var $Function = {
50 bind: function (fn, context) {
51 return fn.bind(context);
52 }
53 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698