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

Side by Side Diff: chrome/browser/gtk/options/languages_page_gtk_unittest.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/gtk/options/languages_page_gtk.h" 5 #include "chrome/browser/gtk/options/languages_page_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "chrome/browser/language_combobox_model.h" 10 #include "chrome/browser/language_combobox_model.h"
11 #include "chrome/browser/pref_service.h" 11 #include "chrome/browser/prefs/pref_service.h"
12 #include "chrome/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
13 #include "chrome/test/testing_profile.h" 13 #include "chrome/test/testing_profile.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 class LanguagesPageGtkTest : public testing::Test { 16 class LanguagesPageGtkTest : public testing::Test {
17 public: 17 public:
18 virtual void SetUp() { 18 virtual void SetUp() {
19 profile_.reset(new TestingProfile()); 19 profile_.reset(new TestingProfile());
20 } 20 }
21 21
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 EXPECT_STREQ("French", GetDisplayedSpellCheckerLang(page).c_str()); 299 EXPECT_STREQ("French", GetDisplayedSpellCheckerLang(page).c_str());
300 300
301 gtk_combo_box_set_active( 301 gtk_combo_box_set_active(
302 GTK_COMBO_BOX(page.dictionary_language_combobox_), 302 GTK_COMBO_BOX(page.dictionary_language_combobox_),
303 page.dictionary_language_model_->GetIndexFromLocale("it")); 303 page.dictionary_language_model_->GetIndexFromLocale("it"));
304 EXPECT_STREQ("Italian", GetDisplayedLangs(page).c_str()); 304 EXPECT_STREQ("Italian", GetDisplayedLangs(page).c_str());
305 EXPECT_STREQ("it", 305 EXPECT_STREQ("it",
306 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages).c_str()); 306 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages).c_str());
307 EXPECT_STREQ("Italian", GetDisplayedSpellCheckerLang(page).c_str()); 307 EXPECT_STREQ("Italian", GetDisplayedSpellCheckerLang(page).c_str());
308 } 308 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698