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

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

Issue 5430003: Cleanup some installer style nits. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years 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
« no previous file with comments | « chrome/installer/util/helper.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <windows.h> 5 #include <windows.h>
6 6
7 #include <fstream> 7 #include <fstream>
8 8
9 #include "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
11 #include "base/path_service.h" 11 #include "base/path_service.h"
12 #include "base/process_util.h" 12 #include "base/process_util.h"
13 #include "base/string_util.h" 13 #include "base/string_util.h"
14 #include "chrome/installer/util/helper.h"
14 #include "chrome/installer/util/package.h" 15 #include "chrome/installer/util/package.h"
15 #include "chrome/installer/util/helper.h"
16 #include "chrome/installer/util/version.h" 16 #include "chrome/installer/util/version.h"
17 #include "chrome/installer/util/work_item.h" 17 #include "chrome/installer/util/work_item.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 using installer::Package;
20 using installer::Version; 21 using installer::Version;
21 using installer::Package;
22 22
23 namespace { 23 namespace {
24 class SetupHelperTest : public testing::Test { 24 class SetupHelperTest : public testing::Test {
25 protected: 25 protected:
26 virtual void SetUp() { 26 virtual void SetUp() {
27 // Name a subdirectory of the user temp directory. 27 // Name a subdirectory of the user temp directory.
28 ASSERT_TRUE(PathService::Get(base::DIR_TEMP, &test_dir_)); 28 ASSERT_TRUE(PathService::Get(base::DIR_TEMP, &test_dir_));
29 test_dir_ = test_dir_.AppendASCII("SetupHelperTest"); 29 test_dir_ = test_dir_.AppendASCII("SetupHelperTest");
30 30
31 // Create a fresh, empty copy of this test directory. 31 // Create a fresh, empty copy of this test directory.
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 EXPECT_FALSE(file_util::PathExists(chrome_dir_1)); 190 EXPECT_FALSE(file_util::PathExists(chrome_dir_1));
191 EXPECT_FALSE(file_util::PathExists(chrome_dir_3)); 191 EXPECT_FALSE(file_util::PathExists(chrome_dir_3));
192 // every thing under in used version should stay 192 // every thing under in used version should stay
193 EXPECT_TRUE(file_util::PathExists(chrome_dir_2)); 193 EXPECT_TRUE(file_util::PathExists(chrome_dir_2));
194 EXPECT_TRUE(file_util::PathExists(chrome_dll_2)); 194 EXPECT_TRUE(file_util::PathExists(chrome_dll_2));
195 EXPECT_TRUE(file_util::PathExists(chrome_othera_2)); 195 EXPECT_TRUE(file_util::PathExists(chrome_othera_2));
196 EXPECT_TRUE(file_util::PathExists(chrome_otherb_2)); 196 EXPECT_TRUE(file_util::PathExists(chrome_otherb_2));
197 // the latest version should stay 197 // the latest version should stay
198 EXPECT_TRUE(file_util::PathExists(chrome_dll_4)); 198 EXPECT_TRUE(file_util::PathExists(chrome_dll_4));
199 } 199 }
OLDNEW
« no previous file with comments | « chrome/installer/util/helper.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698