"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/pub_sub/test/pub_sub_eve_process_event_test.cc" between
snort3-3.1.28.0.tar.gz and snort3-3.1.29.0.tar.gz

About: Snort 3 is a network intrusion prevention and detection system (IDS/IPS) combining the benefits of signature, protocol and anomaly-based inspection.

pub_sub_eve_process_event_test.cc  (snort3-3.1.28.0):pub_sub_eve_process_event_test.cc  (snort3-3.1.29.0)
skipping to change at line 47 skipping to change at line 47
{ {
void teardown() override void teardown() override
{ {
mock().clear(); mock().clear();
} }
}; };
TEST(pub_sub_eve_process_event_test, eve_process_event) TEST(pub_sub_eve_process_event_test, eve_process_event)
{ {
Packet p; Packet p;
std::vector<std::string> alpn = {"h3"};
EveProcessEvent event(p, "process", 10); EveProcessEvent event(p, "process", 10);
event.set_user_agent("chrome");
event.set_server_name("www.google.com");
event.set_alpn(alpn);
CHECK(event.get_process_name() == "process"); CHECK(event.get_process_name() == "process");
CHECK(event.get_process_confidence() == 10); CHECK(event.get_process_confidence() == 10);
CHECK(event.get_user_agent() == "chrome");
CHECK(event.get_server_name() == "www.google.com");
CHECK(event.get_alpn()[0] == "h3");
CHECK(event.get_packet() == &p); CHECK(event.get_packet() == &p);
} }
int main(int argc, char** argv) int main(int argc, char** argv)
{ {
return CommandLineTestRunner::RunAllTests(argc, argv); return CommandLineTestRunner::RunAllTests(argc, argv);
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)