blob: ea2f183ac7696bb0ce6ec7e418815ef34abd412d [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//! See the `README.md` file in this directory for more detail.
#[cfg(test)]
mod tests {
use anyhow::Error;
use fuchsia_async as fasync;
use fuchsia_syslog;
use tests_intl_timezone;
// Implements the Echo service which serves an abbreviated form of current time.
pub static FLUTTER_TIME_SERVICE_URL: &str =
"fuchsia-pkg://fuchsia.com/timestamp-server-flutter#meta/timestamp-server-flutter.cmx";
#[fasync::run_singlethreaded(test)]
async fn check_reported_time_in_flutter_vm() -> Result<(), Error> {
fuchsia_syslog::init_with_tags(&[
"e2e",
"timezone",
"flutter",
"check_reported_time_in_flutter_vm",
])
.unwrap();
tests_intl_timezone::check_reported_time_with_update(
FLUTTER_TIME_SERVICE_URL,
/*get_view=*/ true,
)
.await
}
} // tests
// Makes fargo happy.
fn main() {}