Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: src/platform/update_engine/mock_file_writer.h

Issue 466036: AU: Beginnings of delta support (Closed)
Patch Set: Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/platform/update_engine/main.cc ('k') | src/platform/update_engine/mock_http_fetcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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__
OLDNEW
« no previous file with comments | « src/platform/update_engine/main.cc ('k') | src/platform/update_engine/mock_http_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698