Vectorize sad tab image.
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / language_options_handler_unittest.cc
bloba67121f50072bb82fdc6aa7669f862000279f001
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
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/webui/options/language_options_handler.h"
7 #include <string>
9 #include "base/values.h"
10 #include "testing/gtest/include/gtest/gtest.h"
12 #if !defined(OS_MACOSX)
13 TEST(LanguageOptionsHandlerTest, GetUILanguageCodeSet) {
14 scoped_ptr<base::DictionaryValue> dictionary(
15 options::LanguageOptionsHandler::GetUILanguageCodeSet());
16 EXPECT_TRUE(dictionary->HasKey("en-US"));
17 // Note that we don't test a false case, as such an expectation will
18 // fail when we add support for the language.
19 // EXPECT_FALSE(dictionary->HasKey("no"));
21 #endif // !defined(OS_MACOSX)
23 TEST(LanguageOptionsHandlerTest, GetSpellCheckLanguageCodeSet) {
24 scoped_ptr<base::DictionaryValue> dictionary(
25 options::LanguageOptionsHandler::GetSpellCheckLanguageCodeSet());
26 EXPECT_TRUE(dictionary->HasKey("en-US"));