Searched defs:assert (Results 1 - 25 of 77) sorted by path

1234

/external/chromium_org/base/
H A Dlogging.h74 // which is syntactic sugar for {,D}LOG_IF(FATAL, assert fails) << assertion;
115 // We also override the standard 'assert' to use 'DLOG_ASSERT'.
673 // Redefine the standard assert to use our nice log files
674 #undef assert macro
675 #define assert(x) DLOG_ASSERT(x) macro
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/irc/servlet/jstemplate/
H A Dutil.js73 function assert(obj) {} function
/external/chromium_org/chrome/test/chromedriver/js/
H A Dtest.js7 * @param {*} x The value to assert.
9 function assert(x) { function
16 * @param {*} x The value to assert.
/external/chromium_org/chrome/third_party/chromevox/
H A DchromeVoxChromeBackgroundScript.js48 goog.asserts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);a=new goog.asserts.AssertionError(""+e,f||[]);goog.asserts.errorHandler_(a)};goog.asserts.setErrorHandler=function(a){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=a)};goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};
54 goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.indexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog.isString(a))return goog.isString(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
55 goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.lastIndexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);c=null==c?a.length-1:c;return goog.array.ARRAY_PROTOTYPE_.lastIndexOf.call(a,b,c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(goog.isString(a))return goog.isString(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
56 goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.forEach)?function(a,b,c){goog.asserts.assert(null!=a.length);goog.array.ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)};
57 goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.filter)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e};
58 goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.map)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=goog.isString(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};
59 goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.reduce)?function(a,b,c,d){goog.asserts.assert(null!=a.length);d&&(b=goog.bind(b,d));return goog.array.ARRAY_PROTOTYPE_.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEach(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
60 goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.reduceRight)?function(a,b,c,d){goog.asserts.assert(null!=a.length);d&&(b=goog.bind(b,d));return goog.array.ARRAY_PROTOTYPE_.reduceRight.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEachRight(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
61 goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.some)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};
62 goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.every)?function(a,b,c){goog.asserts.assert(nul
[all...]
H A DchromeVoxChromeOptionsScript.js109 goog.asserts.doAssertFailure_=function(a,b,c,d){var e="Assertion failed";if(c)var e=e+(": "+c),f=d;else a&&(e+=": "+a,f=b);a=new goog.asserts.AssertionError(""+e,f||[]);goog.asserts.errorHandler_(a)};goog.asserts.setErrorHandler=function(a){goog.asserts.ENABLE_ASSERTS&&(goog.asserts.errorHandler_=a)};goog.asserts.assert=function(a,b,c){goog.asserts.ENABLE_ASSERTS&&!a&&goog.asserts.doAssertFailure_("",null,b,Array.prototype.slice.call(arguments,2));return a};
115 goog.array.indexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.indexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(goog.isString(a))return goog.isString(b)&&1==b.length?a.indexOf(b,c):-1;for(;c<a.length;c++)if(c in a&&a[c]===b)return c;return-1};
116 goog.array.lastIndexOf=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.lastIndexOf)?function(a,b,c){goog.asserts.assert(null!=a.length);c=null==c?a.length-1:c;return goog.array.ARRAY_PROTOTYPE_.lastIndexOf.call(a,b,c)}:function(a,b,c){c=null==c?a.length-1:c;0>c&&(c=Math.max(0,a.length+c));if(goog.isString(a))return goog.isString(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;return-1};
117 goog.array.forEach=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.forEach)?function(a,b,c){goog.asserts.assert(null!=a.length);goog.array.ARRAY_PROTOTYPE_.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)};goog.array.forEachRight=function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,d=d-1;0<=d;--d)d in e&&b.call(c,e[d],d,a)};
118 goog.array.filter=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.filter)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=goog.isString(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var k=g[h];b.call(c,k,h,a)&&(e[f++]=k)}return e};
119 goog.array.map=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.map)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=goog.isString(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));return e};
120 goog.array.reduce=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.reduce)?function(a,b,c,d){goog.asserts.assert(null!=a.length);d&&(b=goog.bind(b,d));return goog.array.ARRAY_PROTOTYPE_.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEach(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
121 goog.array.reduceRight=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.reduceRight)?function(a,b,c,d){goog.asserts.assert(null!=a.length);d&&(b=goog.bind(b,d));return goog.array.ARRAY_PROTOTYPE_.reduceRight.call(a,b,c)}:function(a,b,c,d){var e=c;goog.array.forEachRight(a,function(c,g){e=b.call(d,e,c,g,a)});return e};
122 goog.array.some=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.some)?function(a,b,c){goog.asserts.assert(null!=a.length);return goog.array.ARRAY_PROTOTYPE_.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=goog.isString(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1};
123 goog.array.every=goog.NATIVE_ARRAY_PROTOTYPES&&(goog.array.ASSUME_NATIVE_FUNCTIONS||goog.array.ARRAY_PROTOTYPE_.every)?function(a,b,c){goog.asserts.assert(nul
[all...]
/external/chromium_org/chrome/third_party/chromevox/third_party/closure-library/closure/goog/asserts/
H A Dasserts.js20 * for type-inference. For example, <code>goog.asserts.assert(foo)</code>
25 * var x = goog.asserts.assert(foo()); goog.asserts.assert(bar());
118 goog.asserts.assert = function(condition, opt_message, var_args) {
136 * default: goog.assert.fail('Unrecognized type: ' + type);
/external/chromium_org/extensions/test/data/
H A Dutils_unittest.js5 var assert = requireNative('assert'); variable
6 var AssertTrue = assert.AssertTrue;
7 var AssertFalse = assert.AssertFalse;
/external/chromium_org/ppapi/native_client/tools/browser_tester/browserdata/
H A Dnacltest.js347 function assert(condition, message, test_status) { function
722 this.assert = function(condition, message) {
723 assert(condition, message, this);
818 this.assert(messages.length > 0, 'Must provide at least one message');
/external/chromium_org/remoting/webapp/
H A Dbase.js29 base.debug.assert = function(expr, opt_msg) {
71 base.debug.assert(typeof obj.dispose == 'function');
84 base.debug.assert(!dest.hasOwnProperty(prop),"Don't override properties");
318 base.debug.assert(Boolean(obj.eventMap_),
320 base.debug.assert(Boolean(obj.eventMap_[type]), 'Event <' + type +
330 base.debug.assert(!Boolean(this.eventMap_),
339 base.debug.assert(typeof type == 'string');
350 base.debug.assert(typeof fn == 'function');
363 base.debug.assert(typeof fn == 'function');
/external/chromium_org/third_party/cld/base/
H A Dlogging.h93 // which is syntactic sugar for {,D}LOG_IF(FATAL, assert fails) << assertion;
95 // We also override the standard 'assert' to use 'DLOG_ASSERT'.
491 // Only for static analysis tool to know that it is equivalent to assert
658 // A CHECK() macro that lets you assert the success of a function that
850 // Redefine the standard assert to use our nice log files
851 #undef assert macro
852 #define assert(x) DLOG_ASSERT(x) macro
1092 // LogStream you'll get an assert saying as much at runtime.
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/
H A Dunicodestring.cc61 assert(length >= 0 && length <= this->length());
74 assert(pos < length());
104 assert(index < length()); function
/external/chromium_org/third_party/libvpx/source/libvpx/third_party/libwebm/
H A Dmkvparser.cpp30 assert(pReader);
31 assert(pos >= 0);
38 // assert(status >= 0);
39 // assert((total < 0) || (available <= total));
40 // assert(pos < available);
41 // assert((available - pos) >= 1); //assume here max u-int len is 8
67 // assert((available - pos) >= len);
97 assert(pReader);
98 assert(pos >= 0);
103 assert(statu
1187 assert(idx < m_clusterSize); function
1618 assert(q < (m_clusters + size)); function
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/
H A Du_debug.h32 * For now it just has assert and printf replacements, but it might be extended
42 #include <assert.h>
162 * Do not expect that the assert call terminates -- errors must be handled
163 * regardless of assert behavior.
165 * For non debug builds the assert macro will expand to a no-op, so do not
166 * call functions with side effects in the assert expression.
175 /** Override standard assert macro */
176 #ifdef assert
177 #undef assert macro
179 #define assert(exp macro
[all...]
H A Du_format.h401 assert(desc);
414 assert(desc);
442 assert(desc);
462 assert(desc);
496 assert(desc);
510 assert(desc);
546 assert(0);
653 assert(desc);
669 assert(bits % 8 == 0);
679 assert(des
752 assert(component < 4); function
[all...]
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/llvmpipe/
H A Dlp_scene.h208 assert(size <= DATA_BLOCK_SIZE);
209 assert(block != NULL);
242 assert(block != NULL);
271 assert(list->head && list->head->used >= size);
300 assert(x < scene->tiles_x);
301 assert(y < scene->tiles_y);
302 assert(cmd < LP_RAST_OP_MAX); function
309 assert(tail->count == 0);
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/i965/
H A Dbrw_blorp_blit.cpp291 assert(false);
603 assert(key->persample_msaa_dispatch);
612 assert(!key->src_tiled_w);
613 assert(key->tex_samples == key->src_samples);
614 assert(key->tex_layout == key->src_layout);
615 assert(key->tex_samples > 0);
622 assert(key->rt_samples > 0);
626 assert((key->tex_layout == INTEL_MSAA_LAYOUT_NONE) ==
628 assert((key->rt_layout == INTEL_MSAA_LAYOUT_NONE) ==
630 assert((ke
1292 assert(stack_depth < ARRAY_SIZE(texture_data)); function
[all...]
H A Dbrw_vec4_visitor.cpp139 assert(intel->gen >= 6);
269 assert(!"not reached: bad math opcode");
338 assert(!"not reached: unsupported binary math opcode");
385 assert(type->length > 0);
399 assert(0);
518 assert(!"not reached");
562 assert(ir->state_slots != NULL);
608 assert(expr->get_num_operands() <= 2);
681 assert(!"not reached");
714 assert(exp
2233 assert (vert_result < VERT_RESULT_MAX); function
[all...]
/external/chromium_org/third_party/sinonjs/src/
H A Dsinon-qunit.js35 sinon.assert.fail = function (msg) {
39 sinon.assert.pass = function (assertion) {
/external/chromium_org/third_party/smhasher/src/
H A DBitvec.cpp5 #include <assert.h>
9 #undef assert macro
10 void assert ( bool ) function
60 assert((len & 3) == 0);
237 assert((len & 3) == 0);
316 assert((len & 3) == 0);
407 assert((len & 3) == 0);
504 assert((len & 3) == 0);
599 assert((len & 3) == 0);
644 b = a; lshift1 (&b,nbytes,i); assert(
[all...]
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
H A Dbackground_noise.cc13 #include <assert.h>
126 assert(channel < num_channels_); function
131 assert(channel < num_channels_);
136 assert(channel < num_channels_);
141 assert(channel < num_channels_);
146 assert(channel < num_channels_);
152 assert(channel < num_channels_);
159 assert(channel < num_channels_);
163 assert(channel < num_channels_);
191 assert(channe
[all...]
H A Dstatistics_calculator.cc13 #include <assert.h>
94 assert(next_waiting_time_index_ < kLenWaitingTimes); function
113 assert(false);
162 assert((numerator << 14) / denominator < (1 << 14));
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/tools/
H A Dpacket.cc90 assert(payload_);
106 assert(payload_ptr < payload_end_ptr); function
135 assert(valid_header);
139 assert(header_.headerLength <= packet_length_bytes_);
141 assert(packet_length_bytes_ >= header_.headerLength);
143 assert(virtual_packet_length_bytes_ >= header_.headerLength);
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/
H A Drate_statistics.cc13 #include <assert.h>
47 assert(now_offset < num_buckets_); function
69 assert(accumulated_count_ >= count_in_oldest_bucket);
/external/chromium_org/third_party/webrtc/modules/remote_bitrate_estimator/test/
H A Dbwe_test_framework.cc27 assert(max_delay_ms >= 0);
72 assert(packets_per_second_ >= 1);
73 assert(bytes_per_second_ >= packet.second);
153 assert(send_time_us >= 0);
256 assert(in_out);
273 assert(loss_percent >= 0.0f);
274 assert(loss_percent <= 100.0f);
279 assert(in_out);
298 assert(delay_ms >= 0);
303 assert(in_ou
559 assert(first_frame_offset < 1.0f); function
[all...]
/external/chromium_org/third_party/webrtc/modules/rtp_rtcp/source/
H A Drtcp_sender.cc13 #include <assert.h> // assert
373 assert(cName);
550 assert(reportBlock);
666 assert(lengthCname < RTCP_CNAME_SIZE); function
727 assert(length < RTCP_CNAME_SIZE);
1380 assert(pos + 4 < IP_PACKET_SIZE);
2037 assert(arrLength <= kRtpCsrcSize);

Completed in 938 milliseconds

1234