Chromium Code Reviews

Side by Side Diff: chrome/browser/chromeos/cros/mock_language_library.h

Issue 1142005: Mocks for all libcros elements (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_MOCK_LANGUAGE_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_CROS_MOCK_LANGUAGE_LIBRARY_H_
7
8 #include <string>
9
10 #include "chrome/browser/chromeos/cros/language_library.h"
11 #include "testing/gmock/include/gmock/gmock.h"
12
13 namespace chromeos {
14
15 class MockLanguageLibrary : public LanguageLibrary {
16 public:
17 MockLanguageLibrary() {}
18 virtual ~MockLanguageLibrary() {}
19 MOCK_METHOD0(GetActiveLanguages, InputLanguageList*(void));
20 MOCK_METHOD0(GetSupportedLanguages, InputLanguageList*(void));
21 MOCK_METHOD2(ChangeLanguage, void(LanguageCategory, const std::string&));
22 MOCK_METHOD1(ActivateImeProperty, void(const std::string&));
23 MOCK_METHOD1(DeactivateImeProperty, void(const std::string&));
24 MOCK_METHOD2(ActivateLanguage, bool(LanguageCategory, const std::string&));
25 MOCK_METHOD2(DeactivateLanguage, bool(LanguageCategory, const std::string&));
26 MOCK_METHOD3(GetImeConfig, bool(const char*, const char*, ImeConfigValue*));
27 MOCK_METHOD3(SetImeConfig, bool(const char*, const char*,
28 const ImeConfigValue&));
29 MOCK_CONST_METHOD0(current_language, const InputLanguage&(void));
30 MOCK_CONST_METHOD0(current_ime_properties, const ImePropertyList&(void));
31 };
32
33 } // namespace chromeos
34
35 #endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_LANGUAGE_LIBRARY_H_
36
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/mock_cryptohome_library.h ('k') | chrome/browser/chromeos/cros/mock_library_loader.h » ('j') | no next file with comments »

Powered by Google App Engine