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

Side by Side Diff: ui/file_manager/zip_archiver/unpacker-test/cpp/fake_volume_reader.h

Issue 2822673002: Change the copyright from Chromium OS to Chromium. (Closed)
Patch Set: Created 3 years, 8 months 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
OLDNEW
1 // Copyright 2014 The Chromium OS Authors. All rights reserved. 1 // Copyright 2014 The Chromium 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 FAKE_VOLUME_READER_H_ 5 #ifndef FAKE_VOLUME_READER_H_
6 #define FAKE_VOLUME_READER_H_ 6 #define FAKE_VOLUME_READER_H_
7 7
8 #include "volume_reader.h" 8 #include "volume_reader.h"
9 9
10 // A fake VolumeReader for libarchive custom functions for processing archives 10 // A fake VolumeReader for libarchive custom functions for processing archives
11 // data. The calls to VolumeReader are tested by integration tests as they are 11 // data. The calls to VolumeReader are tested by integration tests as they are
12 // used only by libarchive. This class doesn't do anything and represents a 12 // used only by libarchive. This class doesn't do anything and represents a
13 // dummy implementation of VolumeReader in order to isolate unit tests from 13 // dummy implementation of VolumeReader in order to isolate unit tests from
14 // VolumeReaderJavaScriptStream implementation. 14 // VolumeReaderJavaScriptStream implementation.
15 class FakeVolumeReader : public VolumeReader { 15 class FakeVolumeReader : public VolumeReader {
16 public: 16 public:
17 FakeVolumeReader(); 17 FakeVolumeReader();
18 virtual ~FakeVolumeReader(); 18 virtual ~FakeVolumeReader();
19 19
20 int64_t Read(int64_t bytes_to_read, const void** destination_buffer); 20 int64_t Read(int64_t bytes_to_read, const void** destination_buffer);
21 int64_t Skip(int64_t bytes_to_skip); 21 int64_t Skip(int64_t bytes_to_skip);
22 int64_t Seek(int64_t offset, int whence); 22 int64_t Seek(int64_t offset, int whence);
23 const char* Passphrase(); 23 const char* Passphrase();
24 }; 24 };
25 25
26 #endif // FAKE_VOLUME_READER_H_ 26 #endif // FAKE_VOLUME_READER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698