6 // Note this must be consistent with the one defined in fake_gaia.cc.
7 var AUTH_CODE
= 'fake-auth-code';
9 function onMessage(e
) {
10 var targetWindow
= e
.source
;
11 targetWindow
.postMessage({
12 'type': 'authorizationCode',
13 'authorizationCode': AUTH_CODE
17 window
.addEventListener('message', onMessage
);