OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/compiler_specific.h" | 6 #include "base/compiler_specific.h" |
7 #include "base/file_util.h" | |
8 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/files/file_util.h" |
9 #include "base/files/scoped_temp_dir.h" | 9 #include "base/files/scoped_temp_dir.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/component_updater/test/component_patcher_unittest.h" | 14 #include "chrome/browser/component_updater/test/component_patcher_unittest.h" |
15 #include "chrome/browser/component_updater/test/test_installer.h" | 15 #include "chrome/browser/component_updater/test/test_installer.h" |
16 #include "chrome/common/chrome_paths.h" | 16 #include "chrome/common/chrome_paths.h" |
17 #include "components/component_updater/component_patcher.h" | 17 #include "components/component_updater/component_patcher.h" |
18 #include "components/component_updater/component_patcher_operation.h" | 18 #include "components/component_updater/component_patcher_operation.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 | 198 |
199 EXPECT_EQ(true, callback.called_); | 199 EXPECT_EQ(true, callback.called_); |
200 EXPECT_EQ(ComponentUnpacker::kNone, callback.error_); | 200 EXPECT_EQ(ComponentUnpacker::kNone, callback.error_); |
201 EXPECT_EQ(0, callback.extra_code_); | 201 EXPECT_EQ(0, callback.extra_code_); |
202 EXPECT_TRUE(base::ContentsEqual( | 202 EXPECT_TRUE(base::ContentsEqual( |
203 unpack_dir_.path().Append(FILE_PATH_LITERAL("output.bin")), | 203 unpack_dir_.path().Append(FILE_PATH_LITERAL("output.bin")), |
204 test_file("binary_output.bin"))); | 204 test_file("binary_output.bin"))); |
205 } | 205 } |
206 | 206 |
207 } // namespace component_updater | 207 } // namespace component_updater |
OLD | NEW |