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

Side by Side Diff: components/arc/test/fake_intent_helper_instance.h

Issue 2379223004: Switch from Delegate to Observer. (Closed)
Patch Set: Rebase Created 4 years, 2 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 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 COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_ 5 #ifndef COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_
6 #define COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_ 6 #define COMPONENTS_ARC_TEST_FAKE_INTENT_HELPER_INSTANCE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "components/arc/common/intent_helper.mojom.h" 12 #include "components/arc/common/intent_helper.mojom.h"
13 #include "components/arc/test/fake_arc_bridge_instance.h"
14 #include "mojo/public/cpp/bindings/binding.h" 13 #include "mojo/public/cpp/bindings/binding.h"
15 14
16 namespace arc { 15 namespace arc {
17 16
18 class FakeIntentHelperInstance : public mojom::IntentHelperInstance { 17 class FakeIntentHelperInstance : public mojom::IntentHelperInstance {
19 public: 18 public:
20 FakeIntentHelperInstance(); 19 FakeIntentHelperInstance();
21 20
22 class Broadcast { 21 class Broadcast {
23 public: 22 public:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 77
79 private: 78 private:
80 std::vector<Broadcast> broadcasts_; 79 std::vector<Broadcast> broadcasts_;
81 80
82 DISALLOW_COPY_AND_ASSIGN(FakeIntentHelperInstance); 81 DISALLOW_COPY_AND_ASSIGN(FakeIntentHelperInstance);
83 }; 82 };
84 83
85 } // namespace arc 84 } // namespace arc
86 85
87 #endif // COMPONENTS_ARC_TEST_FAKE_POLICY_INSTANCE_H_ 86 #endif // COMPONENTS_ARC_TEST_FAKE_POLICY_INSTANCE_H_
OLDNEW
« no previous file with comments | « components/arc/test/fake_arc_bridge_instance.cc ('k') | components/arc/test/fake_notifications_instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698