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

Unified Diff: chrome/browser/extensions/extension_font_settings_apitest.cc

Issue 10830180: Moving font_settings extensions API to api/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moving "namespace extensions" up Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_font_settings_apitest.cc
diff --git a/chrome/browser/extensions/extension_font_settings_apitest.cc b/chrome/browser/extensions/extension_font_settings_apitest.cc
deleted file mode 100644
index 84f4254a9972f1d582a6d293e2abe25477db4349..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/extension_font_settings_apitest.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Font Settings Extension API browser tests.
-
-#include "chrome/browser/extensions/extension_apitest.h"
-#include "chrome/browser/prefs/pref_service.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"
-
-// Test of extension API on a standard profile.
-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_;
-}
-
-// Test of extension API in incognito split mode.
-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));
-}
« no previous file with comments | « chrome/browser/extensions/extension_font_settings_api.cc ('k') | chrome/browser/extensions/extension_function_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698