blob: 2fcd5f5a65dbbdf8fbaa98072a33974ecb3a44d5 [file] [log] [blame]
[email protected]e3e696d32013-06-21 20:41:361// 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
sorin52ac0882015-01-24 01:15:005#ifndef COMPONENTS_UPDATE_CLIENT_TEST_COMPONENT_PATCHER_UNITTEST_H_
6#define COMPONENTS_UPDATE_CLIENT_TEST_COMPONENT_PATCHER_UNITTEST_H_
[email protected]e3e696d32013-06-21 20:41:367
8#include "base/files/file_path.h"
9#include "base/files/scoped_temp_dir.h"
10#include "base/memory/scoped_ptr.h"
tommycli097d3a42014-08-27 19:05:5711#include "base/message_loop/message_loop.h"
[email protected]e3e696d32013-06-21 20:41:3612#include "courgette/courgette.h"
13#include "courgette/third_party/bsdiff.h"
14#include "testing/gtest/include/gtest/gtest.h"
15
sorin52ac0882015-01-24 01:15:0016namespace update_client {
[email protected]055981f2014-01-17 20:22:3217
[email protected]e3e696d32013-06-21 20:41:3618class MockComponentPatcher;
19class ReadOnlyTestInstaller;
20
21const char binary_output_hash[] =
22 "599aba6d15a7da390621ef1bacb66601ed6aed04dadc1f9b445dcfe31296142a";
23
[email protected]e3e696d32013-06-21 20:41:3624class ComponentPatcherOperationTest : public testing::Test {
25 public:
sorin52ac0882015-01-24 01:15:0026 ComponentPatcherOperationTest();
dcheng30a1b1542014-10-29 21:27:5027 ~ComponentPatcherOperationTest() override;
[email protected]e3e696d32013-06-21 20:41:3628
29 protected:
30 base::ScopedTempDir input_dir_;
31 base::ScopedTempDir installed_dir_;
32 base::ScopedTempDir unpack_dir_;
bauerb810e60f42015-02-05 01:09:1033 scoped_refptr<ReadOnlyTestInstaller> installer_;
[email protected]94a481b2014-03-28 19:41:5534 scoped_refptr<base::SequencedTaskRunner> task_runner_;
35
36 private:
tommycli097d3a42014-08-27 19:05:5737 base::MessageLoopForIO loop_;
[email protected]e3e696d32013-06-21 20:41:3638};
39
sorin52ac0882015-01-24 01:15:0040} // namespace update_client
[email protected]055981f2014-01-17 20:22:3241
sorin52ac0882015-01-24 01:15:0042#endif // COMPONENTS_UPDATE_CLIENT_TEST_COMPONENT_PATCHER_UNITTEST_H_