summaryrefslogtreecommitdiff
path: root/base/win/windows_version_unittest.cc
blob: f0d6d9660d70f6ea238670ce5f2b41a3727e72f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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 "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