Home | History | Annotate | Download | only in util
      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.
      4 
      5 #include "chrome/installer/setup/compat_checks.h"
      6 #include "testing/gtest/include/gtest/gtest.h"
      7 
      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, SymantecSEP) {
     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"));
     16 
     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"));
     21 
     22 }
     23