Update mojo sdk to rev c02a28868825edfa57ab77947b8cb15e741c5598
[chromium-blink-merge.git] / components / update_client / component_patcher_unittest.h
blob8b3a7975d6b74f15940732939b878359d0c81fff
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.
5 #ifndef COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_
6 #define COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_
8 #include "base/files/file_path.h"
9 #include "base/files/scoped_temp_dir.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "base/message_loop/message_loop.h"
12 #include "courgette/courgette.h"
13 #include "courgette/third_party/bsdiff.h"
14 #include "testing/gtest/include/gtest/gtest.h"
16 namespace update_client {
18 class MockComponentPatcher;
19 class ReadOnlyTestInstaller;
21 const char binary_output_hash[] =
22 "599aba6d15a7da390621ef1bacb66601ed6aed04dadc1f9b445dcfe31296142a";
24 class ComponentPatcherOperationTest : public testing::Test {
25 public:
26 ComponentPatcherOperationTest();
27 ~ComponentPatcherOperationTest() override;
29 protected:
30 base::ScopedTempDir input_dir_;
31 base::ScopedTempDir installed_dir_;
32 base::ScopedTempDir unpack_dir_;
33 scoped_refptr<ReadOnlyTestInstaller> installer_;
34 scoped_refptr<base::SequencedTaskRunner> task_runner_;
36 private:
37 base::MessageLoopForIO loop_;
40 } // namespace update_client
42 #endif // COMPONENTS_UPDATE_CLIENT_COMPONENT_PATCHER_UNITTEST_H_