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

Side by Side Diff: chrome/browser/extensions/extension_font_settings_apitest.cc

Issue 10447013: CL for readability review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
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
5 #include "chrome/browser/extensions/extension_apitest.h" 6 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "chrome/browser/prefs/pref_service.h" 7 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
9 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
11 12
12 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FontSettings) { 13 IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FontSettings) {
13 CommandLine::ForCurrentProcess()->AppendSwitch( 14 CommandLine::ForCurrentProcess()->AppendSwitch(
14 switches::kEnableExperimentalExtensionApis); 15 switches::kEnableExperimentalExtensionApis);
(...skipping 17 matching lines...) Expand all
32 prefs->SetString(prefs::kWebKitStandardFontFamilyKorean, "Tahoma"); 33 prefs->SetString(prefs::kWebKitStandardFontFamilyKorean, "Tahoma");
33 prefs->SetString(prefs::kWebKitSansSerifFontFamily, "Arial"); 34 prefs->SetString(prefs::kWebKitSansSerifFontFamily, "Arial");
34 prefs->SetInteger(prefs::kWebKitDefaultFontSize, 16); 35 prefs->SetInteger(prefs::kWebKitDefaultFontSize, 16);
35 36
36 int flags = ExtensionApiTest::kFlagEnableIncognito | 37 int flags = ExtensionApiTest::kFlagEnableIncognito |
37 ExtensionApiTest::kFlagUseIncognito; 38 ExtensionApiTest::kFlagUseIncognito;
38 EXPECT_TRUE(RunExtensionSubtest("font_settings/incognito", 39 EXPECT_TRUE(RunExtensionSubtest("font_settings/incognito",
39 "launch.html", 40 "launch.html",
40 flags)); 41 flags));
41 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698