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

Side by Side Diff: chromeos/dbus/ibus/mock_ibus_client.h

Issue 49773003: ChromeOS: Remove MockDBusThreadManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/fake_dbus_thread_manager.cc ('k') | chromeos/dbus/mock_dbus_thread_manager.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_IBUS_MOCK_IBUS_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_IBUS_MOCK_IBUS_CLIENT_H_
6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_CLIENT_H_ 6 #define CHROMEOS_DBUS_IBUS_MOCK_IBUS_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "chromeos/chromeos_export.h"
10 #include "chromeos/dbus/ibus/ibus_client.h" 11 #include "chromeos/dbus/ibus/ibus_client.h"
11 12
12 namespace chromeos { 13 namespace chromeos {
13 14
14 class MockIBusClient : public IBusClient { 15 class CHROMEOS_EXPORT MockIBusClient : public IBusClient {
15 public: 16 public:
16 MockIBusClient(); 17 MockIBusClient();
17 virtual ~MockIBusClient(); 18 virtual ~MockIBusClient();
18 19
19 typedef base::Callback<void(const std::string& client_name, 20 typedef base::Callback<void(const std::string& client_name,
20 const CreateInputContextCallback& callback, 21 const CreateInputContextCallback& callback,
21 const ErrorCallback& error_callback)> 22 const ErrorCallback& error_callback)>
22 CreateInputContextHandler; 23 CreateInputContextHandler;
23 typedef base::Callback<void(const IBusComponent& ibus_component, 24 typedef base::Callback<void(const IBusComponent& ibus_component,
24 const RegisterComponentCallback& callback, 25 const RegisterComponentCallback& callback,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 int register_component_call_count_; 83 int register_component_call_count_;
83 int set_global_engine_call_count_; 84 int set_global_engine_call_count_;
84 std::string latest_global_engine_name_; 85 std::string latest_global_engine_name_;
85 86
86 DISALLOW_COPY_AND_ASSIGN(MockIBusClient); 87 DISALLOW_COPY_AND_ASSIGN(MockIBusClient);
87 }; 88 };
88 89
89 } // namespace chromeos 90 } // namespace chromeos
90 91
91 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_CLIENT_H_ 92 #endif // CHROMEOS_DBUS_IBUS_MOCK_IBUS_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_dbus_thread_manager.cc ('k') | chromeos/dbus/mock_dbus_thread_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698