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.
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) {
12 'create': function () {
14 registerCustomHook: function () {},
15 generate: function () {}
21 sendRequest: function () {}
26 var requireNative = function(library) {
28 notifications_private: {
29 GetNotificationImageSizes: function () {
32 icon: { width: 0, height: 0 },
33 image: { width: 0, height: 0 },
34 buttonIcon: { width: 0, height: 0}
44 push: function (ary, val) {
50 bind: function (fn, context) {
51 return fn.bind(context);