OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <iostream> | |
9 | 8 |
10 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
11 #include "base/file_util.h" | 10 #include "base/file_util.h" |
12 #include "base/logging.h" | 11 #include "base/logging.h" |
13 #include "base/path_service.h" | 12 #include "base/path_service.h" |
14 #include "base/platform_thread.h" | 13 #include "base/platform_thread.h" |
15 #include "base/process_util.h" | 14 #include "base/process_util.h" |
16 #include "base/scoped_ptr.h" | 15 #include "base/scoped_ptr.h" |
17 #include "base/string_util.h" | 16 #include "base/string_util.h" |
18 #include "chrome/installer/util/work_item.h" | 17 #include "chrome/installer/util/work_item.h" |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 EXPECT_TRUE(file_util::ContentsEqual(file_name_from_1, file_name_to_1)); | 704 EXPECT_TRUE(file_util::ContentsEqual(file_name_from_1, file_name_to_1)); |
706 | 705 |
707 FilePath file_name_to_2(dir_name_to); | 706 FilePath file_name_to_2(dir_name_to); |
708 file_name_to_2 = file_name_to_2.AppendASCII("2"); | 707 file_name_to_2 = file_name_to_2.AppendASCII("2"); |
709 file_name_to_2 = file_name_to_2.AppendASCII("File_2.txt"); | 708 file_name_to_2 = file_name_to_2.AppendASCII("File_2.txt"); |
710 EXPECT_TRUE(file_util::PathExists(file_name_to_2)); | 709 EXPECT_TRUE(file_util::PathExists(file_name_to_2)); |
711 LOG(INFO) << "compare " | 710 LOG(INFO) << "compare " |
712 << file_name_from_2.value() << " and " << file_name_to_2.value(); | 711 << file_name_from_2.value() << " and " << file_name_to_2.value(); |
713 EXPECT_TRUE(file_util::ContentsEqual(file_name_from_2, file_name_to_2)); | 712 EXPECT_TRUE(file_util::ContentsEqual(file_name_from_2, file_name_to_2)); |
714 } | 713 } |
OLD | NEW |