Loading toolkit/components/contentanalysis/tests/browser/browser_content_analysis_dnd_diff_origin.js +17 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,23 @@ let mockCA = { ); }, analyzeBatchContentRequest(aRequest, aAutoAcknowledge) { // This will call into our mock analyzeContentRequestPrivate return this.realCAService.analyzeBatchContentRequest( aRequest, aAutoAcknowledge ); }, analyzeContentRequestsCallback(aRequests, aAutoAcknowledge, aCallback) { // This will call into our mock analyzeContentRequestPrivate this.realCAService.analyzeContentRequestsCallback( aRequests, aAutoAcknowledge, aCallback ); }, showBlockedRequestDialog(aRequest) { info(`got showBlockedRequestDialog for request ${aRequest.requestToken}`); }, Loading toolkit/components/contentanalysis/tests/browser/browser_content_analysis_dnd_same_origin.js +17 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,23 @@ let mockCA = { ); }, analyzeBatchContentRequest(aRequest, aAutoAcknowledge) { // This will call into our mock analyzeContentRequestPrivate return this.realCAService.analyzeBatchContentRequest( aRequest, aAutoAcknowledge ); }, analyzeContentRequestsCallback(aRequests, aAutoAcknowledge, aCallback) { // This will call into our mock analyzeContentRequestPrivate this.realCAService.analyzeContentRequestsCallback( aRequests, aAutoAcknowledge, aCallback ); }, showBlockedRequestDialog(aRequest) { info(`got showBlockedRequestDialog for request ${aRequest.requestToken}`); }, Loading toolkit/components/contentanalysis/tests/browser/browser_content_analysis_dnd_shadow.js +17 −0 Original line number Diff line number Diff line Loading @@ -73,6 +73,23 @@ let mockCA = { ); }, analyzeBatchContentRequest(aRequest, aAutoAcknowledge) { // This will call into our mock analyzeContentRequestPrivate return this.realCAService.analyzeBatchContentRequest( aRequest, aAutoAcknowledge ); }, analyzeContentRequestsCallback(aRequests, aAutoAcknowledge, aCallback) { // This will call into our mock analyzeContentRequestPrivate this.realCAService.analyzeContentRequestsCallback( aRequests, aAutoAcknowledge, aCallback ); }, showBlockedRequestDialog(aRequest) { info(`got showBlockedRequestDialog for request ${aRequest.requestToken}`); }, Loading toolkit/components/contentanalysis/tests/browser/head.js +6 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,12 @@ function makeMockContentAnalysis() { autoAcknowledge ); }, analyzeBatchContentRequest(request, autoAcknowledge) { return this.realCAService.analyzeBatchContentRequest( request, autoAcknowledge ); }, analyzeContentRequestsCallback(requests, autoAcknowledge, callback) { if (this.errorValue) { if (requests.length != 1) { Loading Loading
toolkit/components/contentanalysis/tests/browser/browser_content_analysis_dnd_diff_origin.js +17 −0 Original line number Diff line number Diff line Loading @@ -75,6 +75,23 @@ let mockCA = { ); }, analyzeBatchContentRequest(aRequest, aAutoAcknowledge) { // This will call into our mock analyzeContentRequestPrivate return this.realCAService.analyzeBatchContentRequest( aRequest, aAutoAcknowledge ); }, analyzeContentRequestsCallback(aRequests, aAutoAcknowledge, aCallback) { // This will call into our mock analyzeContentRequestPrivate this.realCAService.analyzeContentRequestsCallback( aRequests, aAutoAcknowledge, aCallback ); }, showBlockedRequestDialog(aRequest) { info(`got showBlockedRequestDialog for request ${aRequest.requestToken}`); }, Loading
toolkit/components/contentanalysis/tests/browser/browser_content_analysis_dnd_same_origin.js +17 −0 Original line number Diff line number Diff line Loading @@ -74,6 +74,23 @@ let mockCA = { ); }, analyzeBatchContentRequest(aRequest, aAutoAcknowledge) { // This will call into our mock analyzeContentRequestPrivate return this.realCAService.analyzeBatchContentRequest( aRequest, aAutoAcknowledge ); }, analyzeContentRequestsCallback(aRequests, aAutoAcknowledge, aCallback) { // This will call into our mock analyzeContentRequestPrivate this.realCAService.analyzeContentRequestsCallback( aRequests, aAutoAcknowledge, aCallback ); }, showBlockedRequestDialog(aRequest) { info(`got showBlockedRequestDialog for request ${aRequest.requestToken}`); }, Loading
toolkit/components/contentanalysis/tests/browser/browser_content_analysis_dnd_shadow.js +17 −0 Original line number Diff line number Diff line Loading @@ -73,6 +73,23 @@ let mockCA = { ); }, analyzeBatchContentRequest(aRequest, aAutoAcknowledge) { // This will call into our mock analyzeContentRequestPrivate return this.realCAService.analyzeBatchContentRequest( aRequest, aAutoAcknowledge ); }, analyzeContentRequestsCallback(aRequests, aAutoAcknowledge, aCallback) { // This will call into our mock analyzeContentRequestPrivate this.realCAService.analyzeContentRequestsCallback( aRequests, aAutoAcknowledge, aCallback ); }, showBlockedRequestDialog(aRequest) { info(`got showBlockedRequestDialog for request ${aRequest.requestToken}`); }, Loading
toolkit/components/contentanalysis/tests/browser/head.js +6 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,12 @@ function makeMockContentAnalysis() { autoAcknowledge ); }, analyzeBatchContentRequest(request, autoAcknowledge) { return this.realCAService.analyzeBatchContentRequest( request, autoAcknowledge ); }, analyzeContentRequestsCallback(requests, autoAcknowledge, callback) { if (this.errorValue) { if (requests.length != 1) { Loading