| Index: chrome/browser/chromeos/cros/mock_language_library.h
|
| ===================================================================
|
| --- chrome/browser/chromeos/cros/mock_language_library.h (revision 0)
|
| +++ chrome/browser/chromeos/cros/mock_language_library.h (revision 0)
|
| @@ -0,0 +1,36 @@
|
| +// Copyright (c) 2010 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 CHROME_BROWSER_CHROMEOS_CROS_MOCK_LANGUAGE_LIBRARY_H_
|
| +#define CHROME_BROWSER_CHROMEOS_CROS_MOCK_LANGUAGE_LIBRARY_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "chrome/browser/chromeos/cros/language_library.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +
|
| +namespace chromeos {
|
| +
|
| +class MockLanguageLibrary : public LanguageLibrary {
|
| + public:
|
| + MockLanguageLibrary() {}
|
| + virtual ~MockLanguageLibrary() {}
|
| + MOCK_METHOD0(GetActiveLanguages, InputLanguageList*(void));
|
| + MOCK_METHOD0(GetSupportedLanguages, InputLanguageList*(void));
|
| + MOCK_METHOD2(ChangeLanguage, void(LanguageCategory, const std::string&));
|
| + MOCK_METHOD1(ActivateImeProperty, void(const std::string&));
|
| + MOCK_METHOD1(DeactivateImeProperty, void(const std::string&));
|
| + MOCK_METHOD2(ActivateLanguage, bool(LanguageCategory, const std::string&));
|
| + MOCK_METHOD2(DeactivateLanguage, bool(LanguageCategory, const std::string&));
|
| + MOCK_METHOD3(GetImeConfig, bool(const char*, const char*, ImeConfigValue*));
|
| + MOCK_METHOD3(SetImeConfig, bool(const char*, const char*,
|
| + const ImeConfigValue&));
|
| + MOCK_CONST_METHOD0(current_language, const InputLanguage&(void));
|
| + MOCK_CONST_METHOD0(current_ime_properties, const ImePropertyList&(void));
|
| +};
|
| +
|
| +} // namespace chromeos
|
| +
|
| +#endif // CHROME_BROWSER_CHROMEOS_CROS_MOCK_LANGUAGE_LIBRARY_H_
|
| +
|
|
|
| Property changes on: chrome/browser/chromeos/cros/mock_language_library.h
|
| ___________________________________________________________________
|
| Added: svn:eol-style
|
| + LF
|
|
|
|
|