[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 | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 5 | #ifndef COMPONENTS_UPDATE_CLIENT_TEST_COMPONENT_PATCHER_UNITTEST_H_ |
6 | #define COMPONENTS_UPDATE_CLIENT_TEST_COMPONENT_PATCHER_UNITTEST_H_ | ||||
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 7 | |
8 | #include "base/files/file_path.h" | ||||
9 | #include "base/files/scoped_temp_dir.h" | ||||
10 | #include "base/memory/scoped_ptr.h" | ||||
tommycli | 097d3a4 | 2014-08-27 19:05:57 | [diff] [blame] | 11 | #include "base/message_loop/message_loop.h" |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 12 | #include "courgette/courgette.h" |
13 | #include "courgette/third_party/bsdiff.h" | ||||
14 | #include "testing/gtest/include/gtest/gtest.h" | ||||
15 | |||||
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 16 | namespace update_client { |
[email protected] | 055981f | 2014-01-17 20:22:32 | [diff] [blame] | 17 | |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 18 | class MockComponentPatcher; |
19 | class ReadOnlyTestInstaller; | ||||
20 | |||||
21 | const char binary_output_hash[] = | ||||
22 | "599aba6d15a7da390621ef1bacb66601ed6aed04dadc1f9b445dcfe31296142a"; | ||||
23 | |||||
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 24 | class ComponentPatcherOperationTest : public testing::Test { |
25 | public: | ||||
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 26 | ComponentPatcherOperationTest(); |
dcheng | 30a1b154 | 2014-10-29 21:27:50 | [diff] [blame] | 27 | ~ComponentPatcherOperationTest() override; |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 28 | |
29 | protected: | ||||
30 | base::ScopedTempDir input_dir_; | ||||
31 | base::ScopedTempDir installed_dir_; | ||||
32 | base::ScopedTempDir unpack_dir_; | ||||
bauerb | 810e60f4 | 2015-02-05 01:09:10 | [diff] [blame] | 33 | scoped_refptr<ReadOnlyTestInstaller> installer_; |
[email protected] | 94a481b | 2014-03-28 19:41:55 | [diff] [blame] | 34 | scoped_refptr<base::SequencedTaskRunner> task_runner_; |
35 | |||||
36 | private: | ||||
tommycli | 097d3a4 | 2014-08-27 19:05:57 | [diff] [blame] | 37 | base::MessageLoopForIO loop_; |
[email protected] | e3e696d3 | 2013-06-21 20:41:36 | [diff] [blame] | 38 | }; |
39 | |||||
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 40 | } // namespace update_client |
[email protected] | 055981f | 2014-01-17 20:22:32 | [diff] [blame] | 41 | |
sorin | 52ac088 | 2015-01-24 01:15:00 | [diff] [blame] | 42 | #endif // COMPONENTS_UPDATE_CLIENT_TEST_COMPONENT_PATCHER_UNITTEST_H_ |