diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-12 05:35:29 +0000 |
commit | 59203c63bb777a3bacec32fb8830fba33540e809 (patch) | |
tree | 58298e711c0ff0575818c30485b44a2f21bf28a0 /third_party/rust/glean/src/test.rs | |
parent | Adding upstream version 126.0.1. (diff) | |
download | firefox-59203c63bb777a3bacec32fb8830fba33540e809.tar.xz firefox-59203c63bb777a3bacec32fb8830fba33540e809.zip |
Adding upstream version 127.0.upstream/127.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'third_party/rust/glean/src/test.rs')
-rw-r--r-- | third_party/rust/glean/src/test.rs | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/third_party/rust/glean/src/test.rs b/third_party/rust/glean/src/test.rs index 16d6d05447..c547cabccd 100644 --- a/third_party/rust/glean/src/test.rs +++ b/third_party/rust/glean/src/test.rs @@ -49,7 +49,8 @@ fn send_a_ping() { // Define a new ping and submit it. const PING_NAME: &str = "test-ping"; - let custom_ping = private::PingType::new(PING_NAME, true, true, true, true, vec![]); + let custom_ping = + private::PingType::new(PING_NAME, true, true, true, true, true, vec![], vec![]); custom_ping.submit(None); // Wait for the ping to arrive. @@ -90,7 +91,8 @@ fn send_a_ping_without_info_sections() { // Define a new ping and submit it. const PING_NAME: &str = "noinfo-ping"; - let custom_ping = private::PingType::new(PING_NAME, true, true, true, false, vec![]); + let custom_ping = + private::PingType::new(PING_NAME, true, true, true, false, true, vec![], vec![]); custom_ping.submit(None); // Wait for the ping to arrive. @@ -594,7 +596,7 @@ fn ping_collection_must_happen_after_concurrently_scheduled_metrics_recordings() ); let ping_name = "custom_ping_1"; - let ping = private::PingType::new(ping_name, true, false, true, true, vec![]); + let ping = private::PingType::new(ping_name, true, false, true, true, true, vec![], vec![]); let metric = private::StringMetric::new(CommonMetricData { name: "string_metric".into(), category: "telemetry".into(), @@ -1097,7 +1099,16 @@ fn flipping_upload_enabled_respects_order_of_events() { .build(); // We create a ping and a metric before we initialize Glean - let sample_ping = PingType::new("sample-ping-1", true, false, true, true, vec![]); + let sample_ping = PingType::new( + "sample-ping-1", + true, + false, + true, + true, + true, + vec![], + vec![], + ); let metric = private::StringMetric::new(CommonMetricData { name: "string_metric".into(), category: "telemetry".into(), @@ -1141,7 +1152,7 @@ fn registering_pings_before_init_must_work() { } // Create a custom ping and attempt its registration. - let sample_ping = PingType::new("pre-register", true, true, true, true, vec![]); + let sample_ping = PingType::new("pre-register", true, true, true, true, true, vec![], vec![]); // Create a custom configuration to use a fake uploader. let dir = tempfile::tempdir().unwrap(); @@ -1193,7 +1204,7 @@ fn test_a_ping_before_submission() { let _t = new_glean(Some(cfg), true); // Create a custom ping and register it. - let sample_ping = PingType::new("custom1", true, true, true, true, vec![]); + let sample_ping = PingType::new("custom1", true, true, true, true, true, vec![], vec![]); let metric = CounterMetric::new(CommonMetricData { name: "counter_metric".into(), @@ -1310,7 +1321,8 @@ fn signaling_done() { // Define a new ping and submit it. const PING_NAME: &str = "test-ping"; - let custom_ping = private::PingType::new(PING_NAME, true, true, true, true, vec![]); + let custom_ping = + private::PingType::new(PING_NAME, true, true, true, true, true, vec![], vec![]); custom_ping.submit(None); custom_ping.submit(None); @@ -1381,7 +1393,8 @@ fn configure_ping_throttling() { // Define a new ping. const PING_NAME: &str = "test-ping"; - let custom_ping = private::PingType::new(PING_NAME, true, true, true, true, vec![]); + let custom_ping = + private::PingType::new(PING_NAME, true, true, true, true, true, vec![], vec![]); // Submit and receive it `pings_per_interval` times. for _ in 0..pings_per_interval { |