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

Unified Diff: chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc

Issue 9999018: chrome/browser/chromeos/input_method/ refactoring [part 6 of 6] (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc
diff --git a/chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc b/chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc
index 24a9cb38c39a2634d24bcc75395099fb4e2c6641..a095d63cffa9657bb3c8540fb4be9985c6748c06 100644
--- a/chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc
+++ b/chrome/browser/ui/webui/options2/language_options_handler2_unittest.cc
@@ -12,15 +12,26 @@
#if defined(OS_CHROMEOS)
#include "chrome/browser/chromeos/input_method/input_method_descriptor.h"
#include "chrome/browser/chromeos/input_method/input_method_whitelist.h"
+#include "chrome/browser/chromeos/input_method/mock_input_method_manager.h"
#include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handler2.h"
using chromeos::input_method::InputMethodDescriptor;
using chromeos::input_method::InputMethodDescriptors;
+using chromeos::input_method::InputMethodManager;
using chromeos::input_method::InputMethodWhitelist;
+using chromeos::input_method::MockInputMethodManager;
namespace {
class LanguageOptionsHandlerTest : public testing::Test {
+ public:
+ LanguageOptionsHandlerTest() {
+ InputMethodManager::InitializeForTesting(new MockInputMethodManager);
+ }
+ virtual ~LanguageOptionsHandlerTest() {
+ InputMethodManager::Shutdown();
+ }
+
protected:
InputMethodDescriptors CreateInputMethodDescriptors() {
InputMethodDescriptors descriptors;
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698