| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/chromeos/dom_ui/language_options_handler.h" | 5 // TODO(csilv): This is for the move CL. Changes to make this cross-platform |
| 6 // will come in the followup CL. |
| 7 #if defined(OS_CHROMEOS) |
| 8 |
| 9 #include "chrome/browser/dom_ui/options/language_options_handler.h" |
| 6 | 10 |
| 7 #include <string> | 11 #include <string> |
| 8 | 12 |
| 9 #include "base/scoped_ptr.h" | 13 #include "base/scoped_ptr.h" |
| 10 #include "base/values.h" | 14 #include "base/values.h" |
| 11 #include "chrome/browser/chromeos/cros/cros_library.h" | 15 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 12 #include "chrome/browser/chromeos/cros/input_method_library.h" | 16 #include "chrome/browser/chromeos/cros/input_method_library.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
| 14 | 18 |
| 15 namespace chromeos { | 19 namespace chromeos { |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 // EXPECT_FALSE(dictionary->HasKey("no")); | 168 // EXPECT_FALSE(dictionary->HasKey("no")); |
| 165 } | 169 } |
| 166 | 170 |
| 167 TEST(LanguageOptionsHandlerTest, GetSpellCheckLanguageCodeSet) { | 171 TEST(LanguageOptionsHandlerTest, GetSpellCheckLanguageCodeSet) { |
| 168 scoped_ptr<DictionaryValue> dictionary( | 172 scoped_ptr<DictionaryValue> dictionary( |
| 169 LanguageOptionsHandler::GetSpellCheckLanguageCodeSet()); | 173 LanguageOptionsHandler::GetSpellCheckLanguageCodeSet()); |
| 170 EXPECT_TRUE(dictionary->HasKey("en-US")); | 174 EXPECT_TRUE(dictionary->HasKey("en-US")); |
| 171 } | 175 } |
| 172 | 176 |
| 173 } // namespace chromeos | 177 } // namespace chromeos |
| 178 |
| 179 #endif // OS_CHROMEOS |
| 180 |
| OLD | NEW |