Name Description Size Coverage
agent -
allowedFile.txt 8 -
allowedFile1.txt 8 -
allowedFile2.txt 8 -
blockedFile.txt 8 -
moz.build 984 -
TestContentAnalysis.cpp 71079 -
TestContentAnalysisAgent.cpp 4135 -
TestContentAnalysisMisbehaving.cpp TEST(ContentAnalysisMisbehaving, LargeResponse) { auto MozAgentInfo = LaunchAgentMisbehaving(L"largeResponse"); // Exit the test early if the process failed to launch ASSERT_NE(MozAgentInfo.processInfo.dwProcessId, 0UL); ASSERT_NE(nullptr, MozAgentInfo.client.get()); ContentAnalysisRequest request; request.set_request_token("request token"); request.set_text_content("unused"); ContentAnalysisResponse response; ASSERT_EQ(0, MozAgentInfo.client->Send(request, &response)); ASSERT_STREQ("request token", response.request_token().c_str()); ASSERT_EQ(1001, response.results().size()); BOOL terminateResult = ::TerminateProcess(MozAgentInfo.processInfo.hProcess, 0); ASSERT_NE(FALSE, terminateResult) << "Failed to terminate content_analysis_sdk_agent process"; } 13849 -
TestContentAnalysisTelemetry.cpp 13262 -
TestContentAnalysisUtils.cpp = L"warn" 9944 -
TestContentAnalysisUtils.h 6439 -