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

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

Issue 3129007: FBTF: Forward declare everything possible in testing_profile.h (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: argh mac problems now Created 10 years, 4 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/common/pref_names.h" 12 #include "chrome/common/pref_names.h"
12 #include "chrome/test/testing_profile.h" 13 #include "chrome/test/testing_profile.h"
13 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
14 15
15 class LanguagesPageGtkTest : public testing::Test { 16 class LanguagesPageGtkTest : public testing::Test {
16 public: 17 public:
17 virtual void SetUp() { 18 virtual void SetUp() {
18 profile_.reset(new TestingProfile()); 19 profile_.reset(new TestingProfile());
19 } 20 }
20 21
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 EXPECT_STREQ("French", GetDisplayedSpellCheckerLang(page).c_str()); 299 EXPECT_STREQ("French", GetDisplayedSpellCheckerLang(page).c_str());
299 300
300 gtk_combo_box_set_active( 301 gtk_combo_box_set_active(
301 GTK_COMBO_BOX(page.dictionary_language_combobox_), 302 GTK_COMBO_BOX(page.dictionary_language_combobox_),
302 page.dictionary_language_model_->GetIndexFromLocale("it")); 303 page.dictionary_language_model_->GetIndexFromLocale("it"));
303 EXPECT_STREQ("Italian", GetDisplayedLangs(page).c_str()); 304 EXPECT_STREQ("Italian", GetDisplayedLangs(page).c_str());
304 EXPECT_STREQ("it", 305 EXPECT_STREQ("it",
305 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages).c_str()); 306 profile_->GetPrefs()->GetString(prefs::kAcceptLanguages).c_str());
306 EXPECT_STREQ("Italian", GetDisplayedSpellCheckerLang(page).c_str()); 307 EXPECT_STREQ("Italian", GetDisplayedSpellCheckerLang(page).c_str());
307 } 308 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/keyword_editor_view_unittest.cc ('k') | chrome/browser/history/top_sites_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698