This source file includes following definitions.
- IN_PROC_BROWSER_TEST_F
- IN_PROC_BROWSER_TEST_F
#include "base/prefs/pref_service.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FontSettings) {
PrefService* prefs = browser()->profile()->GetPrefs();
prefs->SetString(prefs::kWebKitStandardFontFamilyKorean, "Tahoma");
prefs->SetString(prefs::kWebKitSansSerifFontFamily, "Arial");
prefs->SetInteger(prefs::kWebKitDefaultFontSize, 16);
prefs->SetInteger(prefs::kWebKitDefaultFixedFontSize, 14);
prefs->SetInteger(prefs::kWebKitMinimumFontSize, 8);
EXPECT_TRUE(RunExtensionTest("font_settings/standard")) << message_;
}
IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FontSettingsIncognito) {
PrefService* prefs = browser()->profile()->GetPrefs();
prefs->SetString(prefs::kWebKitStandardFontFamilyKorean, "Tahoma");
prefs->SetString(prefs::kWebKitSansSerifFontFamily, "Arial");
prefs->SetInteger(prefs::kWebKitDefaultFontSize, 16);
int flags = ExtensionApiTest::kFlagEnableIncognito |
ExtensionApiTest::kFlagUseIncognito;
EXPECT_TRUE(RunExtensionSubtest("font_settings/incognito",
"launch.html",
flags));
}