Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome/installer/util/compat_checks_unittest.cc

Issue 10835019: Fix license headers in a number of files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix case Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/installer/setup/compat_checks.h" 5 #include "chrome/installer/setup/compat_checks.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 7
8 // Test that we detect the incompatible SEP version. The very last digit 8 // Test that we detect the incompatible SEP version. The very last digit
9 // of the version does not matter but must be present. 9 // of the version does not matter but must be present.
10 TEST(CompatTests, SymantecSEP) { 10 TEST(CompatTests, SymantecSEP) {
11 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3001.0")); 11 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3001.0"));
12 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000.1")); 12 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000.1"));
13 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"11.0.2999.1")); 13 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"11.0.2999.1"));
14 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"10.1.5000.1")); 14 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"10.1.5000.1"));
15 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"9.5.1000.0")); 15 EXPECT_TRUE(HasIncompatibleSymantecEndpointVersion(L"9.5.1000.0"));
16 16
17 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"")); 17 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L""));
18 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000")); 18 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000"));
19 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000.1.2")); 19 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.0.3000.1.2"));
20 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.b.3000.1")); 20 EXPECT_FALSE(HasIncompatibleSymantecEndpointVersion(L"11.b.3000.1"));
21 21
22 } 22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698