1 //
2 // Copyright (C) 2020 The Android Open Source Project
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 #include "update_engine/payload_generator/boot_img_filesystem.h"
18 
19 namespace chromeos_update_engine {
CreateFromFile(const std::string &)20 std::unique_ptr<BootImgFilesystem> BootImgFilesystem::CreateFromFile(
21     const std::string& /* filename */) {
22   return nullptr;
23 }
24 
GetBlockSize() const25 size_t BootImgFilesystem::GetBlockSize() const {
26   return 4096;
27 }
28 
GetBlockCount() const29 size_t BootImgFilesystem::GetBlockCount() const {
30   return 0;
31 }
32 
GetFile(const std::string &,uint64_t,uint64_t) const33 FilesystemInterface::File BootImgFilesystem::GetFile(
34     const std::string& /* name */,
35     uint64_t /* offset */,
36     uint64_t /* size */) const {
37   return {};
38 }
39 
GetFiles(std::vector<File> *) const40 bool BootImgFilesystem::GetFiles(std::vector<File>* /* files */) const {
41   return false;
42 }
43 
LoadSettings(brillo::KeyValueStore *) const44 bool BootImgFilesystem::LoadSettings(brillo::KeyValueStore* /* store */) const {
45   return false;
46 }
47 
48 }  // namespace chromeos_update_engine
49