blob: a3b70f22df36f891cf40d2499ea91566aed70870 [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
sorinb120440b2015-04-27 16:34:155#ifndef COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_
6#define COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_
[email protected]e3e696d32013-06-21 20:41:367
dchengd0fc6aa92016-04-22 18:03:128#include <memory>
9
[email protected]e3e696d32013-06-21 20:41:3610#include "base/files/file_path.h"
11#include "base/files/scoped_temp_dir.h"
tommycli097d3a42014-08-27 19:05:5712#include "base/message_loop/message_loop.h"
[email protected]e3e696d32013-06-21 20:41:3613#include "courgette/courgette.h"
14#include "courgette/third_party/bsdiff.h"
15#include "testing/gtest/include/gtest/gtest.h"
16
sorin52ac0882015-01-24 01:15:0017namespace update_client {
[email protected]055981f2014-01-17 20:22:3218
[email protected]e3e696d32013-06-21 20:41:3619class MockComponentPatcher;
20class ReadOnlyTestInstaller;
21
22const char binary_output_hash[] =
23 "599aba6d15a7da390621ef1bacb66601ed6aed04dadc1f9b445dcfe31296142a";
24
[email protected]e3e696d32013-06-21 20:41:3625class ComponentPatcherOperationTest : public testing::Test {
26 public:
sorin52ac0882015-01-24 01:15:0027 ComponentPatcherOperationTest();
dcheng30a1b1542014-10-29 21:27:5028 ~ComponentPatcherOperationTest() override;
[email protected]e3e696d32013-06-21 20:41:3629
30 protected:
31 base::ScopedTempDir input_dir_;
32 base::ScopedTempDir installed_dir_;
33 base::ScopedTempDir unpack_dir_;
bauerb810e60f42015-02-05 01:09:1034 scoped_refptr<ReadOnlyTestInstaller> installer_;
[email protected]94a481b2014-03-28 19:41:5535 scoped_refptr<base::SequencedTaskRunner> task_runner_;
36
37 private:
tommycli097d3a42014-08-27 19:05:5738 base::MessageLoopForIO loop_;
[email protected]e3e696d32013-06-21 20:41:3639};
40
sorin52ac0882015-01-24 01:15:0041} // namespace update_client
[email protected]055981f2014-01-17 20:22:3242
sorinb120440b2015-04-27 16:34:1543#endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_