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

Side by Side Diff: chromeos/dbus/fake_image_loader_client.h

Issue 2731253003: Add LoadComponent API in ImageLoader dbus adapter. (Closed)
Patch Set: Add LoadComponent API in ImageLoader dbus adapter. Created 3 years, 9 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
« no previous file with comments | « no previous file | chromeos/dbus/fake_image_loader_client.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "chromeos/dbus/image_loader_client.h" 11 #include "chromeos/dbus/image_loader_client.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 // A fake implementation of ImageLoaderClient. This class does nothing. 15 // A fake implementation of ImageLoaderClient. This class does nothing.
16 class CHROMEOS_EXPORT FakeImageLoaderClient : public ImageLoaderClient { 16 class CHROMEOS_EXPORT FakeImageLoaderClient : public ImageLoaderClient {
17 public: 17 public:
18 FakeImageLoaderClient() {} 18 FakeImageLoaderClient() {}
19 ~FakeImageLoaderClient() override {} 19 ~FakeImageLoaderClient() override {}
20 20
21 // DBusClient ovveride. 21 // DBusClient ovveride.
22 void Init(dbus::Bus* dbus) override {} 22 void Init(dbus::Bus* dbus) override {}
23 23
24 // ImageLoaderClient override: 24 // ImageLoaderClient override:
25 void RegisterComponent(const std::string& name, 25 void RegisterComponent(const std::string& name,
26 const std::string& version, 26 const std::string& version,
27 const std::string& component_folder_abs_path, 27 const std::string& component_folder_abs_path,
28 const BoolDBusMethodCallback& callback) override; 28 const BoolDBusMethodCallback& callback) override;
29 void LoadComponent(const std::string& name,
30 const StringDBusMethodCallback& callback) override;
29 31
30 private: 32 private:
31 DISALLOW_COPY_AND_ASSIGN(FakeImageLoaderClient); 33 DISALLOW_COPY_AND_ASSIGN(FakeImageLoaderClient);
32 }; 34 };
33 35
34 } // namespace chromeos 36 } // namespace chromeos
35 37
36 #endif // CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_ 38 #endif // CHROMEOS_DBUS_FAKE_IMAGE_LOADER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/fake_image_loader_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698