blob: bf5168c308a1b5cca2435de61fdba90069ecb044 [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"
Sorin Jianuebd652462017-07-23 02:00:5812#include "base/memory/ref_counted.h"
Gabriel Charette5ff87ce2017-05-16 18:03:4513#include "base/sequenced_task_runner.h"
Sorin Jianuebd652462017-07-23 02:00:5814#include "base/test/scoped_task_environment.h"
[email protected]e3e696d32013-06-21 20:41:3615#include "courgette/courgette.h"
altimin979ea2e12016-05-18 16:16:2416#include "courgette/third_party/bsdiff/bsdiff.h"
[email protected]e3e696d32013-06-21 20:41:3617#include "testing/gtest/include/gtest/gtest.h"
18
sorin52ac0882015-01-24 01:15:0019namespace update_client {
[email protected]055981f2014-01-17 20:22:3220
[email protected]e3e696d32013-06-21 20:41:3621class ReadOnlyTestInstaller;
22
23const char binary_output_hash[] =
24 "599aba6d15a7da390621ef1bacb66601ed6aed04dadc1f9b445dcfe31296142a";
25
[email protected]e3e696d32013-06-21 20:41:3626class ComponentPatcherOperationTest : public testing::Test {
27 public:
sorin52ac0882015-01-24 01:15:0028 ComponentPatcherOperationTest();
dcheng30a1b1542014-10-29 21:27:5029 ~ComponentPatcherOperationTest() override;
[email protected]e3e696d32013-06-21 20:41:3630
31 protected:
Sorin Jianuebd652462017-07-23 02:00:5832 base::test::ScopedTaskEnvironment scoped_task_environment_;
[email protected]e3e696d32013-06-21 20:41:3633 base::ScopedTempDir input_dir_;
34 base::ScopedTempDir installed_dir_;
35 base::ScopedTempDir unpack_dir_;
bauerb810e60f42015-02-05 01:09:1036 scoped_refptr<ReadOnlyTestInstaller> installer_;
[email protected]e3e696d32013-06-21 20:41:3637};
38
sorin52ac0882015-01-24 01:15:0039} // namespace update_client
[email protected]055981f2014-01-17 20:22:3240
sorinb120440b2015-04-27 16:34:1541#endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_