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

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

Issue 689553002: Cleanup: Remove unneeded path_service.h includes in base and chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win Created 6 years, 1 month 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/path_service.h"
15 #include "base/strings/string_util.h" 14 #include "base/strings/string_util.h"
16 #include "chrome/installer/util/delete_tree_work_item.h" 15 #include "chrome/installer/util/delete_tree_work_item.h"
17 #include "chrome/installer/util/work_item.h" 16 #include "chrome/installer/util/work_item.h"
18 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
19 18
20 namespace { 19 namespace {
21 20
22 class DeleteTreeWorkItemTest : public testing::Test { 21 class DeleteTreeWorkItemTest : public testing::Test {
23 protected: 22 protected:
24 virtual void SetUp() { 23 virtual void SetUp() {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 211
213 // verify everything is still there. 212 // verify everything is still there.
214 EXPECT_TRUE(base::PathExists(key_path)); 213 EXPECT_TRUE(base::PathExists(key_path));
215 EXPECT_TRUE(base::PathExists(file_name_delete_1)); 214 EXPECT_TRUE(base::PathExists(file_name_delete_1));
216 EXPECT_TRUE(base::PathExists(file_name_delete_2)); 215 EXPECT_TRUE(base::PathExists(file_name_delete_2));
217 216
218 TerminateProcess(pi.hProcess, 0); 217 TerminateProcess(pi.hProcess, 0);
219 // make sure the handle is closed. 218 // make sure the handle is closed.
220 WaitForSingleObject(pi.hProcess, INFINITE); 219 WaitForSingleObject(pi.hProcess, INFINITE);
221 } 220 }
OLDNEW
« no previous file with comments | « chrome/installer/util/create_dir_work_item_unittest.cc ('k') | chrome/installer/util/master_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698