Merge "IP connectivity metrics: fix tests"
This commit is contained in:
@@ -58,8 +58,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" default_network_event <",
|
" default_network_event <",
|
||||||
" network_id <",
|
" network_id <",
|
||||||
" network_id: 102",
|
" network_id: 102",
|
||||||
@@ -89,8 +89,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" dhcp_event <",
|
" dhcp_event <",
|
||||||
" duration_ms: 192",
|
" duration_ms: 192",
|
||||||
" if_name: \"wlan0\"",
|
" if_name: \"wlan0\"",
|
||||||
@@ -112,8 +112,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" dhcp_event <",
|
" dhcp_event <",
|
||||||
" duration_ms: 0",
|
" duration_ms: 0",
|
||||||
" if_name: \"wlan0\"",
|
" if_name: \"wlan0\"",
|
||||||
@@ -137,8 +137,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" dns_lookup_batch <",
|
" dns_lookup_batch <",
|
||||||
" event_types: 1",
|
" event_types: 1",
|
||||||
" event_types: 1",
|
" event_types: 1",
|
||||||
@@ -185,8 +185,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" ip_provisioning_event <",
|
" ip_provisioning_event <",
|
||||||
" event_type: 1",
|
" event_type: 1",
|
||||||
" if_name: \"wlan0\"",
|
" if_name: \"wlan0\"",
|
||||||
@@ -208,8 +208,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" ip_reachability_event <",
|
" ip_reachability_event <",
|
||||||
" event_type: 512",
|
" event_type: 512",
|
||||||
" if_name: \"wlan0\"",
|
" if_name: \"wlan0\"",
|
||||||
@@ -231,8 +231,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" network_event <",
|
" network_event <",
|
||||||
" event_type: 5",
|
" event_type: 5",
|
||||||
" latency_ms: 20410",
|
" latency_ms: 20410",
|
||||||
@@ -258,8 +258,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" validation_probe_event <",
|
" validation_probe_event <",
|
||||||
" latency_ms: 40730",
|
" latency_ms: 40730",
|
||||||
" network_id <",
|
" network_id <",
|
||||||
@@ -287,8 +287,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" apf_program_event <",
|
" apf_program_event <",
|
||||||
" current_ras: 9",
|
" current_ras: 9",
|
||||||
" drop_multicast: true",
|
" drop_multicast: true",
|
||||||
@@ -319,8 +319,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" apf_statistics <",
|
" apf_statistics <",
|
||||||
" dropped_ras: 2",
|
" dropped_ras: 2",
|
||||||
" duration_ms: 45000",
|
" duration_ms: 45000",
|
||||||
@@ -351,8 +351,8 @@ public class IpConnectivityEventBuilderTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 1",
|
" time_ms: 1",
|
||||||
" transport: 0",
|
|
||||||
" ra_event <",
|
" ra_event <",
|
||||||
" dnssl_lifetime: -1",
|
" dnssl_lifetime: -1",
|
||||||
" prefix_preferred_lifetime: 300",
|
" prefix_preferred_lifetime: 300",
|
||||||
|
|||||||
@@ -158,16 +158,16 @@ public class IpConnectivityMetricsTest extends TestCase {
|
|||||||
String want = joinLines(
|
String want = joinLines(
|
||||||
"dropped_events: 0",
|
"dropped_events: 0",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 100",
|
" time_ms: 100",
|
||||||
" transport: 0",
|
|
||||||
" ip_reachability_event <",
|
" ip_reachability_event <",
|
||||||
" event_type: 512",
|
" event_type: 512",
|
||||||
" if_name: \"wlan0\"",
|
" if_name: \"wlan0\"",
|
||||||
" >",
|
" >",
|
||||||
">",
|
">",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 200",
|
" time_ms: 200",
|
||||||
" transport: 0",
|
|
||||||
" dhcp_event <",
|
" dhcp_event <",
|
||||||
" duration_ms: 192",
|
" duration_ms: 192",
|
||||||
" if_name: \"wlan0\"",
|
" if_name: \"wlan0\"",
|
||||||
@@ -175,8 +175,8 @@ public class IpConnectivityMetricsTest extends TestCase {
|
|||||||
" >",
|
" >",
|
||||||
">",
|
">",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 300",
|
" time_ms: 300",
|
||||||
" transport: 0",
|
|
||||||
" default_network_event <",
|
" default_network_event <",
|
||||||
" network_id <",
|
" network_id <",
|
||||||
" network_id: 102",
|
" network_id: 102",
|
||||||
@@ -191,8 +191,8 @@ public class IpConnectivityMetricsTest extends TestCase {
|
|||||||
" >",
|
" >",
|
||||||
">",
|
">",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 400",
|
" time_ms: 400",
|
||||||
" transport: 0",
|
|
||||||
" ip_provisioning_event <",
|
" ip_provisioning_event <",
|
||||||
" event_type: 1",
|
" event_type: 1",
|
||||||
" if_name: \"wlan0\"",
|
" if_name: \"wlan0\"",
|
||||||
@@ -200,8 +200,8 @@ public class IpConnectivityMetricsTest extends TestCase {
|
|||||||
" >",
|
" >",
|
||||||
">",
|
">",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 500",
|
" time_ms: 500",
|
||||||
" transport: 0",
|
|
||||||
" validation_probe_event <",
|
" validation_probe_event <",
|
||||||
" latency_ms: 40730",
|
" latency_ms: 40730",
|
||||||
" network_id <",
|
" network_id <",
|
||||||
@@ -212,8 +212,8 @@ public class IpConnectivityMetricsTest extends TestCase {
|
|||||||
" >",
|
" >",
|
||||||
">",
|
">",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 600",
|
" time_ms: 600",
|
||||||
" transport: 0",
|
|
||||||
" apf_statistics <",
|
" apf_statistics <",
|
||||||
" dropped_ras: 2",
|
" dropped_ras: 2",
|
||||||
" duration_ms: 45000",
|
" duration_ms: 45000",
|
||||||
@@ -226,8 +226,8 @@ public class IpConnectivityMetricsTest extends TestCase {
|
|||||||
" >",
|
" >",
|
||||||
">",
|
">",
|
||||||
"events <",
|
"events <",
|
||||||
|
" link_layer: 0",
|
||||||
" time_ms: 700",
|
" time_ms: 700",
|
||||||
" transport: 0",
|
|
||||||
" ra_event <",
|
" ra_event <",
|
||||||
" dnssl_lifetime: -1",
|
" dnssl_lifetime: -1",
|
||||||
" prefix_preferred_lifetime: 300",
|
" prefix_preferred_lifetime: 300",
|
||||||
|
|||||||
@@ -213,8 +213,8 @@ public class NetdEventListenerServiceTest extends TestCase {
|
|||||||
|
|
||||||
IpConnectivityEvent got = events.get(0);
|
IpConnectivityEvent got = events.get(0);
|
||||||
String want = String.join("\n",
|
String want = String.join("\n",
|
||||||
|
"link_layer: 0",
|
||||||
"time_ms: 0",
|
"time_ms: 0",
|
||||||
"transport: 0",
|
|
||||||
"connect_statistics <",
|
"connect_statistics <",
|
||||||
" connect_count: 12",
|
" connect_count: 12",
|
||||||
" errnos_counters <",
|
" errnos_counters <",
|
||||||
|
|||||||
Reference in New Issue
Block a user