Change log:95336cb92b..191d55580eFull diff:95336cb92b..191d55580eRoll chromium third_party 4e16929f46..3a8f2a9e1e Change log:4e16929f46..3a8f2a9e1eChanged dependencies: * src/tools:c44a3f5eca..f524a53b81DEPS diff:95336cb92b..191d55580e/DEPS No update to Clang. TBR=titovartem@google.com, BUG=None CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal Change-Id: Ic9c4a62b050383646e9fcf5cc07a5653c14ac06e Reviewed-on: https://webrtc-review.googlesource.com/76120 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23205}
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
/**
|
|
* @fileoverview Exports symbols needed only by tests.
|
|
*
|
|
* This file exports several Closure Library symbols that are only
|
|
* used by tests. It is used to generate a file
|
|
* closure_asserts_commonjs.js that is only used at testing time.
|
|
*/
|
|
|
|
// Include a dummy provide statement so that closurebuilder.py does not skip over this
|
|
// file.
|
|
goog.provide('jspb.ExportAsserts');
|
|
|
|
goog.require('goog.testing.asserts');
|
|
|
|
var global = Function('return this')();
|
|
|
|
// All of the closure "assert" functions are exported at the global level.
|
|
//
|
|
// The Google Closure assert functions start with assert, eg.
|
|
// assertThrows
|
|
// assertNotThrows
|
|
// assertTrue
|
|
// ...
|
|
//
|
|
// The one exception is the "fail" function.
|
|
function shouldExport(str) {
|
|
return str.lastIndexOf('assert') === 0 || str == 'fail';
|
|
}
|
|
|
|
for (var key in global) {
|
|
if ((typeof key == "string") && global.hasOwnProperty(key) &&
|
|
shouldExport(key)) {
|
|
exports[key] = global[key];
|
|
}
|
|
}
|
|
|
|
// The COMPILED variable is set by Closure compiler to "true" when it compiles
|
|
// JavaScript, so in practice this is equivalent to "exports.COMPILED = true".
|
|
// This will disable some debugging functionality in debug.js. We could
|
|
// investigate whether this can/should be enabled in CommonJS builds.
|
|
exports.COMPILED = COMPILED
|