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

Side by Side Diff: chrome/installer/util/move_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
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/installer/util/product_unittest.h » ('j') | 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) 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/memory_mapped_file.h" 11 #include "base/files/memory_mapped_file.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/path_service.h"
14 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
15 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
16 #include "chrome/installer/util/installer_util_test_common.h" 15 #include "chrome/installer/util/installer_util_test_common.h"
17 #include "chrome/installer/util/move_tree_work_item.h" 16 #include "chrome/installer/util/move_tree_work_item.h"
18 #include "chrome/installer/util/work_item.h" 17 #include "chrome/installer/util/work_item.h"
19 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
20 19
21 namespace { 20 namespace {
22 class MoveTreeWorkItemTest : public testing::Test { 21 class MoveTreeWorkItemTest : public testing::Test {
23 protected: 22 protected:
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 // the source files. 533 // the source files.
535 EXPECT_TRUE(base::PathExists(from_dir1)); 534 EXPECT_TRUE(base::PathExists(from_dir1));
536 EXPECT_TRUE(base::PathExists(to_dir)); 535 EXPECT_TRUE(base::PathExists(to_dir));
537 EXPECT_TRUE(base::PathExists(orig_to_file)); 536 EXPECT_TRUE(base::PathExists(orig_to_file));
538 EXPECT_EQ(0, ReadTextFile(orig_to_file).compare(kTextContent1)); 537 EXPECT_EQ(0, ReadTextFile(orig_to_file).compare(kTextContent1));
539 EXPECT_EQ(0, ReadTextFile(from_file).compare(kTextContent1)); 538 EXPECT_EQ(0, ReadTextFile(from_file).compare(kTextContent1));
540 539
541 // Also, after rollback the new "to" file should be gone. 540 // Also, after rollback the new "to" file should be gone.
542 EXPECT_FALSE(base::PathExists(new_to_file2)); 541 EXPECT_FALSE(base::PathExists(new_to_file2));
543 } 542 }
OLDNEW
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/installer/util/product_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698