Austin Schuh | 64fab80 | 2020-09-09 22:47:47 -0700 | [diff] [blame] | 1 | #include "aos/events/logging/uuid.h" |
2 | |||||
3 | #include "glog/logging.h" | ||||
4 | #include "gtest/gtest.h" | ||||
5 | |||||
6 | namespace aos { | ||||
7 | namespace 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. | ||||
11 | TEST(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 |