1 # Copyright (c) 2016 Google, Inc
2 # Written by Simon Glass <sjg@chromium.org>
4 # SPDX-License-Identifier: GPL-2.0+
6 # Entry-type module for testing purposes. Not used in real images.
9 from entry import Entry
13 class Entry__testing(Entry):
14 def __init__(self, image, etype, node):
15 Entry.__init__(self, image, etype, node)
17 def ObtainContents(self):
19 self.contents_size = len(self.data)
22 def ReadContents(self):
25 def GetPositions(self):
26 return {'invalid-entry': [1, 2]}