Android: Get rid of extra dup()s on launching child processes
[chromium-blink-merge.git] / chrome / installer / util / compat_checks_unittest.cc
blob2d6d295cd640a28ef5b87a21544b0688b0ef25c8
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/setup/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, 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"));
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"));