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

Unified Diff: chrome/browser/chromeos/input_method/xkeyboard_unittest.cc

Issue 11415266: Extract a delegate interface from c/b/input_method to permit decoupling from c/b. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Class comment. Created 8 years 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/chromeos/input_method/xkeyboard_unittest.cc
diff --git a/chrome/browser/chromeos/input_method/xkeyboard_unittest.cc b/chrome/browser/chromeos/input_method/xkeyboard_unittest.cc
index 24b3a463366d0e81e95f249b92b082bc9c2fb7d0..ab3cc3af40f1138fdf217aee9e85ee3824be6e0c 100644
--- a/chrome/browser/chromeos/input_method/xkeyboard_unittest.cc
+++ b/chrome/browser/chromeos/input_method/xkeyboard_unittest.cc
@@ -13,6 +13,7 @@
#include "base/message_loop.h"
#include "chrome/browser/chromeos/input_method/input_method_util.h"
#include "chrome/browser/chromeos/input_method/input_method_whitelist.h"
+#include "chrome/browser/chromeos/input_method/mock_input_method_delegate.h"
#include "content/public/test/test_browser_thread.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/x/x11_util.h"
@@ -29,7 +30,7 @@ namespace {
class XKeyboardTest : public testing::Test {
public:
XKeyboardTest()
- : util_(whitelist_.GetSupportedInputMethods()),
+ : util_(&delegate_, whitelist_.GetSupportedInputMethods()),
ui_thread_(BrowserThread::UI, &message_loop_) {
}
@@ -41,6 +42,7 @@ class XKeyboardTest : public testing::Test {
xkey_.reset();
}
+ MockInputMethodDelegate delegate_;
InputMethodWhitelist whitelist_;
InputMethodUtil util_;
scoped_ptr<XKeyboard> xkey_;

Powered by Google App Engine
This is Rietveld 408576698