// Copyright 2017 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. | |
#include "src/lib/uuid/uuid.h" | |
#include <stdint.h> | |
#include <string> | |
#include <vector> | |
#include <gtest/gtest.h> | |
namespace { | |
TEST(UUID, Generate) { | |
for (int i = 0; i < 256; ++i) { | |
auto uuid = uuid::Generate(); | |
EXPECT_TRUE(uuid::IsValid(uuid)); | |
EXPECT_TRUE(uuid::IsValidOutputString(uuid)); | |
} | |
} | |
} // namespace |