Update V8 to version 3.28.2 (based on bleeding_edge revision r21987).
[chromium-blink-merge.git] / chrome / installer / setup / compat_checks_unittest.cc
blobdef8632c90983080877a31a57fac531336cd60b9
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/installer/util/compat_checks.h"
6 #include "testing/gtest/include/gtest/gtest.h"
8 // Test that we detect the incompatible SEP version. The very last digit
9 // of the version does not matter but must be present.
10 TEST(CompatTests, SymantecSEPVersion) {
11 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3001.0"));
12 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000.1"));
13 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"11.0.2999.1"));
14 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"10.1.5000.1"));
15 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"9.5.1000.0"));
17 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L""));
18 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000"));
19 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000.1.2"));
20 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.b.3000.1"));
22 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(NULL));