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

Unified Diff: chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.h

Issue 397723002: Extract l10n-related parts of NetworkScreenHandler to a helper file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Derive list of input methods from actual locale, not requested locale. This is how it used to work … Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.h
diff --git a/chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.h b/chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..e64c28f2c604ec54821db9c66bedd8a9497af637
--- /dev/null
+++ b/chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.h
@@ -0,0 +1,41 @@
+// Copyright 2014 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_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_TEST_UTIL_H_
+#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_TEST_UTIL_H_
+
+#include <string>
+
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/values.h"
+#include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
+#include "chromeos/ime/input_method_descriptor.h"
+
+namespace chromeos {
+
+class MockInputMethodManagerWithInputMethods
+ : public input_method::MockInputMethodManager {
+ public:
+ MockInputMethodManagerWithInputMethods();
+ virtual ~MockInputMethodManagerWithInputMethods();
+
+ // input_method::MockInputMethodManager:
+ virtual scoped_ptr<input_method::InputMethodDescriptors>
+ GetSupportedInputMethods() const OVERRIDE;
+
+ void AddInputMethod(const std::string& id,
+ const std::string& raw_layout,
+ const std::string& language_code);
+
+ private:
+ input_method::InputMethodDescriptors descriptors_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockInputMethodManagerWithInputMethods);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_TEST_UTIL_H_
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/l10n_util.cc ('k') | chrome/browser/ui/webui/chromeos/login/l10n_util_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698