Chromium Code Reviews| Index: base/win/windows_version_unittest.cc |
| diff --git a/base/win/windows_version_unittest.cc b/base/win/windows_version_unittest.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2b926cc06cf34415934f8e05f9c265dbf69de3bb |
| --- /dev/null |
| +++ b/base/win/windows_version_unittest.cc |
| @@ -0,0 +1,27 @@ |
| +// Copyright 2016 The Chromium 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 <windows.h> |
|
grt (UTC plus 2)
2016/03/10 19:43:44
iwyu here and below
scottmg
2016/03/10 23:51:40
Done.
|
| + |
| +#include "base/files/file_path.h" |
| +#include "base/macros.h" |
| +#include "base/scoped_native_library.h" |
| +#include "base/win/win_util.h" |
| +#include "base/win/windows_version.h" |
| +#include "testing/gtest/include/gtest/gtest.h" |
| + |
| +namespace base { |
| +namespace win { |
| +namespace { |
| + |
| +TEST(WindowsVersion, GetVersionExAndKernelVersionMatch) { |
| + // If this fails, we're running in compatibility mode, or need to update the |
| + // application manifest. |
| + EXPECT_EQ(OSInfo::GetInstance()->version(), |
| + OSInfo::GetInstance()->Kernel32Version()); |
| +} |
| + |
| +} // namespace |
| +} // namespace win |
| +} // namespace base |