| // Copyright 2016 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROMEOS_DBUS_FAKE_ARC_OBB_MOUNTER_CLIENT_H_ |
| #define CHROMEOS_DBUS_FAKE_ARC_OBB_MOUNTER_CLIENT_H_ |
| |
| #include <string> |
| |
| #include "chromeos/dbus/arc_obb_mounter_client.h" |
| |
| namespace chromeos { |
| |
| // A fake implementation of ArcObbMounterClient. |
| class COMPONENT_EXPORT(CHROMEOS_DBUS) FakeArcObbMounterClient |
| : public ArcObbMounterClient { |
| public: |
| FakeArcObbMounterClient(); |
| ~FakeArcObbMounterClient() override; |
| |
| // DBusClient override. |
| void Init(dbus::Bus* bus) override; |
| |
| // ArcObbMounterClient override: |
| void MountObb(const std::string& obb_file, |
| const std::string& mount_path, |
| int32_t owner_gid, |
| VoidDBusMethodCallback callback) override; |
| void UnmountObb(const std::string& mount_path, |
| VoidDBusMethodCallback callback) override; |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(FakeArcObbMounterClient); |
| }; |
| |
| } // namespace chromeos |
| |
| #endif // CHROMEOS_DBUS_FAKE_ARC_OBB_MOUNTER_CLIENT_H_ |