blob: d0320dedb3f144027c3f59589312d1cc22c78fde [file] [log] [blame]
Austin Schuh64fab802020-09-09 22:47:47 -07001#include "aos/events/logging/uuid.h"
2
3#include "glog/logging.h"
4#include "gtest/gtest.h"
5
6namespace aos {
7namespace testing {
8
9// Tests that random UUIDs are actually random, and we can convert them to a
10// string. Not very exhaustive, but it is a good smoke test.
11TEST(UUIDTest, GetOne) {
12 LOG(INFO) << UUID::Random().string_view();
13
14 EXPECT_NE(UUID::Random(), UUID::Random());
15}
16
17} // namespace testing
18} // namespace aos