[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 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 | ||||
3 | // found in the LICENSE file. | ||||
4 | |||||
sorin | b120440b | 2015-04-27 16:34:15 | [diff] [blame] | 5 | #ifndef COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_ |
6 | #define COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_ | ||||
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 7 | |
dcheng | d0fc6aa9 | 2016-04-22 18:03:12 | [diff] [blame] | 8 | #include <memory> |
9 | |||||
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 10 | #include "base/files/file_path.h" |
11 | #include "base/files/scoped_temp_dir.h" | ||||
Sorin Jianu | ebd65246 | 2017-07-23 02:00:58 | [diff] [blame^] | 12 | #include "base/memory/ref_counted.h" |
Gabriel Charette | 5ff87ce | 2017-05-16 18:03:45 | [diff] [blame] | 13 | #include "base/sequenced_task_runner.h" |
Sorin Jianu | ebd65246 | 2017-07-23 02:00:58 | [diff] [blame^] | 14 | #include "base/test/scoped_task_environment.h" |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 15 | #include "courgette/courgette.h" |
altimin | 979ea2e1 | 2016-05-18 16:16:24 | [diff] [blame] | 16 | #include "courgette/third_party/bsdiff/bsdiff.h" |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 17 | #include "testing/gtest/include/gtest/gtest.h" |
18 | |||||
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 19 | namespace update_client { |
[email protected] | 055981f | 2014-01-17 20:22:32 | [diff] [blame] | 20 | |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 21 | class ReadOnlyTestInstaller; |
22 | |||||
23 | const char binary_output_hash[] = | ||||
24 | "599aba6d15a7da390621ef1bacb66601ed6aed04dadc1f9b445dcfe31296142a"; | ||||
25 | |||||
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 26 | class ComponentPatcherOperationTest : public testing::Test { |
27 | public: | ||||
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 28 | ComponentPatcherOperationTest(); |
dcheng | 30a1b154 | 2014-10-29 21:27:50 | [diff] [blame] | 29 | ~ComponentPatcherOperationTest() override; |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 30 | |
31 | protected: | ||||
Sorin Jianu | ebd65246 | 2017-07-23 02:00:58 | [diff] [blame^] | 32 | base::test::ScopedTaskEnvironment scoped_task_environment_; |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 33 | base::ScopedTempDir input_dir_; |
34 | base::ScopedTempDir installed_dir_; | ||||
35 | base::ScopedTempDir unpack_dir_; | ||||
bauerb | 810e60f4 | 2015-02-05 01:09:10 | [diff] [blame] | 36 | scoped_refptr<ReadOnlyTestInstaller> installer_; |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 37 | }; |
38 | |||||
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 39 | } // namespace update_client |
[email protected] | 055981f | 2014-01-17 20:22:32 | [diff] [blame] | 40 | |
sorin | b120440b | 2015-04-27 16:34:15 | [diff] [blame] | 41 | #endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_ |