OLD | NEW |
1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UPDATE_ENGINE_MOCK_FILE_WRITER_H__ | 5 #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_FILE_WRITER_H__ |
6 #define UPDATE_ENGINE_MOCK_FILE_WRITER_H__ | 6 #define CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_FILE_WRITER_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "update_engine/file_writer.h" | 9 #include "update_engine/file_writer.h" |
10 | 10 |
11 // MockFileWriter is an implementation of FileWriter. It will succeed | 11 // MockFileWriter is an implementation of FileWriter. It will succeed |
12 // calls to Open(), Close(), but not do any work. All calls to Write() | 12 // calls to Open(), Close(), but not do any work. All calls to Write() |
13 // will append the passed data to an internal vector. | 13 // will append the passed data to an internal vector. |
14 | 14 |
15 namespace chromeos_update_engine { | 15 namespace chromeos_update_engine { |
16 | 16 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 | 49 |
50 // These are just to ensure FileWriter methods are called properly. | 50 // These are just to ensure FileWriter methods are called properly. |
51 bool was_opened_; | 51 bool was_opened_; |
52 bool was_closed_; | 52 bool was_closed_; |
53 | 53 |
54 DISALLOW_COPY_AND_ASSIGN(MockFileWriter); | 54 DISALLOW_COPY_AND_ASSIGN(MockFileWriter); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace chromeos_update_engine | 57 } // namespace chromeos_update_engine |
58 | 58 |
59 #endif // UPDATE_ENGINE_MOCK_FILE_WRITER_H__ | 59 #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_MOCK_FILE_WRITER_H__ |
OLD | NEW |