2 * Copyright (c) 2014-present, Facebook, Inc.
5 * This source code is licensed in accordance with the terms specified in
6 * the LICENSE file found in the root directory of this source tree.
9 #include <gtest/gtest.h>
11 #include "osquery/system.h"
15 class UUIDTests : public testing::Test {};
17 TEST_F(UUIDTests, test_invalid_uuid) {
18 std::string uuid = "10000000-0000-8000-0040-000000000000";
20 EXPECT_TRUE(isPlaceholderHardwareUUID(uuid));
23 TEST_F(UUIDTests, test_valid_uuid) {
24 std::string uuid = "226e380e-67d1-4214-9868-5383a79af0b8";
26 EXPECT_FALSE(isPlaceholderHardwareUUID(uuid));
29 } // namespace osquery