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

Side by Side Diff: components/storage_monitor/test_media_transfer_protocol_manager_linux.h

Issue 684513002: Standardize usage of virtual/override/final specifiers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 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 COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_ 5 #ifndef COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
6 #define COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_ 6 #define COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX_H_
7 7
8 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h" 8 #include "device/media_transfer_protocol/media_transfer_protocol_manager.h"
9 9
10 namespace storage_monitor { 10 namespace storage_monitor {
11 11
12 // A dummy MediaTransferProtocolManager implementation. 12 // A dummy MediaTransferProtocolManager implementation.
13 class TestMediaTransferProtocolManagerLinux 13 class TestMediaTransferProtocolManagerLinux
14 : public device::MediaTransferProtocolManager { 14 : public device::MediaTransferProtocolManager {
15 public: 15 public:
16 TestMediaTransferProtocolManagerLinux(); 16 TestMediaTransferProtocolManagerLinux();
17 virtual ~TestMediaTransferProtocolManagerLinux(); 17 ~TestMediaTransferProtocolManagerLinux() override;
18 18
19 private: 19 private:
20 // device::MediaTransferProtocolManager implementation. 20 // device::MediaTransferProtocolManager implementation.
21 virtual void AddObserver(Observer* observer) override; 21 void AddObserver(Observer* observer) override;
22 virtual void RemoveObserver(Observer* observer) override; 22 void RemoveObserver(Observer* observer) override;
23 virtual const std::vector<std::string> GetStorages() const override; 23 const std::vector<std::string> GetStorages() const override;
24 virtual const MtpStorageInfo* GetStorageInfo( 24 const MtpStorageInfo* GetStorageInfo(
25 const std::string& storage_name) const override; 25 const std::string& storage_name) const override;
26 virtual void OpenStorage(const std::string& storage_name, 26 void OpenStorage(const std::string& storage_name,
27 const std::string& mode, 27 const std::string& mode,
28 const OpenStorageCallback& callback) override; 28 const OpenStorageCallback& callback) override;
29 virtual void CloseStorage(const std::string& storage_handle, 29 void CloseStorage(const std::string& storage_handle,
30 const CloseStorageCallback& callback) override; 30 const CloseStorageCallback& callback) override;
31 virtual void ReadDirectory(const std::string& storage_handle, 31 void ReadDirectory(const std::string& storage_handle,
32 uint32 file_id, 32 uint32 file_id,
33 const ReadDirectoryCallback& callback) override; 33 const ReadDirectoryCallback& callback) override;
34 virtual void ReadFileChunk(const std::string& storage_handle, 34 void ReadFileChunk(const std::string& storage_handle,
35 uint32 file_id, 35 uint32 file_id,
36 uint32 offset, 36 uint32 offset,
37 uint32 count, 37 uint32 count,
38 const ReadFileCallback& callback) override; 38 const ReadFileCallback& callback) override;
39 virtual void GetFileInfo(const std::string& storage_handle, 39 void GetFileInfo(const std::string& storage_handle,
40 uint32 file_id, 40 uint32 file_id,
41 const GetFileInfoCallback& callback) override; 41 const GetFileInfoCallback& callback) override;
42 42
43 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux); 43 DISALLOW_COPY_AND_ASSIGN(TestMediaTransferProtocolManagerLinux);
44 }; 44 };
45 45
46 } // namespace storage_monitor 46 } // namespace storage_monitor
47 47
48 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX _H_ 48 #endif // COMPONENTS_STORAGE_MONITOR_TEST_MEDIA_TRANSFER_PROTOCOL_MANAGER_LINUX _H_
OLDNEW
« no previous file with comments | « components/storage_monitor/storage_monitor_linux_unittest.cc ('k') | components/storage_monitor/test_storage_monitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698