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 
5 #ifndef COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_
6 #define COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_
7 
8 #include <memory>
9 
10 #include "base/files/file_path.h"
11 #include "base/files/scoped_temp_dir.h"
12 #include "base/memory/ref_counted.h"
13 #include "base/sequenced_task_runner.h"
14 #include "base/test/task_environment.h"
15 #include "courgette/courgette.h"
16 #include "courgette/third_party/bsdiff/bsdiff.h"
17 #include "testing/gtest/include/gtest/gtest.h"
18 
19 namespace update_client {
20 
21 class ReadOnlyTestInstaller;
22 
23 const char binary_output_hash[] =
24     "599aba6d15a7da390621ef1bacb66601ed6aed04dadc1f9b445dcfe31296142a";
25 
26 class ComponentPatcherOperationTest : public testing::Test {
27  public:
28   ComponentPatcherOperationTest();
29   ~ComponentPatcherOperationTest() override;
30 
31  protected:
32   base::test::TaskEnvironment task_environment_;
33   base::ScopedTempDir input_dir_;
34   base::ScopedTempDir installed_dir_;
35   base::ScopedTempDir unpack_dir_;
36   scoped_refptr<ReadOnlyTestInstaller> installer_;
37 };
38 
39 }  // namespace update_client
40 
41 #endif  // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_
42