Remove filesystem
[platform/core/security/vist.git] / src / osquery / core / tests / system_test.cpp
1 /**
2  *  Copyright (c) 2014-present, Facebook, Inc.
3  *  All rights reserved.
4  *
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.
7  */
8
9 #include <gtest/gtest.h>
10
11 #include "osquery/system.h"
12
13 namespace osquery {
14
15 class UUIDTests : public testing::Test {};
16
17 TEST_F(UUIDTests, test_invalid_uuid) {
18   std::string uuid = "10000000-0000-8000-0040-000000000000";
19
20   EXPECT_TRUE(isPlaceholderHardwareUUID(uuid));
21 }
22
23 TEST_F(UUIDTests, test_valid_uuid) {
24   std::string uuid = "226e380e-67d1-4214-9868-5383a79af0b8";
25
26   EXPECT_FALSE(isPlaceholderHardwareUUID(uuid));
27 }
28
29 } // namespace osquery