OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/ui/webui/options2/language_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/language_options_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 #if defined(OS_CHROMEOS) | 12 #if defined(OS_CHROMEOS) |
13 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" | 13 #include "chrome/browser/chromeos/input_method/input_method_descriptor.h" |
14 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" | 14 #include "chrome/browser/chromeos/input_method/mock_input_method_manager.h" |
15 #include "chrome/browser/ui/webui/options2/chromeos/cros_language_options_handle
r.h" | 15 #include "chrome/browser/ui/webui/options/chromeos/cros_language_options_handler
.h" |
16 | 16 |
17 using chromeos::input_method::InputMethodDescriptor; | 17 using chromeos::input_method::InputMethodDescriptor; |
18 using chromeos::input_method::InputMethodDescriptors; | 18 using chromeos::input_method::InputMethodDescriptors; |
19 using chromeos::input_method::InputMethodManager; | 19 using chromeos::input_method::InputMethodManager; |
20 using chromeos::input_method::MockInputMethodManager; | 20 using chromeos::input_method::MockInputMethodManager; |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 class LanguageOptionsHandlerTest : public testing::Test { | 24 class LanguageOptionsHandlerTest : public testing::Test { |
25 public: | 25 public: |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 // fail when we add support for the language. | 217 // fail when we add support for the language. |
218 // EXPECT_FALSE(dictionary->HasKey("no")); | 218 // EXPECT_FALSE(dictionary->HasKey("no")); |
219 } | 219 } |
220 #endif // !defined(OS_MACOSX) | 220 #endif // !defined(OS_MACOSX) |
221 | 221 |
222 TEST_F(LanguageOptionsHandlerTest, GetSpellCheckLanguageCodeSet) { | 222 TEST_F(LanguageOptionsHandlerTest, GetSpellCheckLanguageCodeSet) { |
223 scoped_ptr<DictionaryValue> dictionary( | 223 scoped_ptr<DictionaryValue> dictionary( |
224 options::LanguageOptionsHandler::GetSpellCheckLanguageCodeSet()); | 224 options::LanguageOptionsHandler::GetSpellCheckLanguageCodeSet()); |
225 EXPECT_TRUE(dictionary->HasKey("en-US")); | 225 EXPECT_TRUE(dictionary->HasKey("en-US")); |
226 } | 226 } |
OLD | NEW |