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

Unified Diff: chrome/browser/apps/ad_view_browsertest.cc

Issue 327363002: Remove adview (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More files deleted! Created 6 years, 6 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/ad_view_browsertest.cc
diff --git a/chrome/browser/apps/ad_view_browsertest.cc b/chrome/browser/apps/ad_view_browsertest.cc
deleted file mode 100644
index 278e07a1c90bf479297dbca00e76ff2e5861dc3d..0000000000000000000000000000000000000000
--- a/chrome/browser/apps/ad_view_browsertest.cc
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2013 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.
-
-#include "chrome/browser/apps/app_browsertest_util.h"
-#include "chrome/browser/extensions/extension_test_message_listener.h"
-#include "chrome/common/chrome_switches.h"
-#include "content/test/net/url_request_prepackaged_interceptor.h"
-#include "net/url_request/url_fetcher.h"
-
-class AdViewTest : public extensions::PlatformAppBrowserTest {
- protected:
- virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
- extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line);
- command_line->AppendSwitch(switches::kEnableAdview);
- }
-};
-
-// This test checks that <adview> attributes are also exposed as properties
-// (with the same name and value).
-#if defined(OS_WIN)
-// Flaky on Win XP. (http://crbug.com/264362)
-#define MAYBE_PropertiesAreInSyncWithAttributes \
- DISABLED_PropertiesAreInSyncWithAttributes
-#else
-#define MAYBE_PropertiesAreInSyncWithAttributes \
- PropertiesAreInSyncWithAttributes
-#endif
-IN_PROC_BROWSER_TEST_F(AdViewTest, MAYBE_PropertiesAreInSyncWithAttributes) {
- ASSERT_TRUE(StartEmbeddedTestServer());
-
- ASSERT_TRUE(RunPlatformAppTest(
- "platform_apps/ad_view/properties_exposed")) << message_;
-}
-
-// This test checks an invalid "ad-network" value (i.e. not whitelisted)
-// is ignored.
-IN_PROC_BROWSER_TEST_F(AdViewTest, InvalidAdNetworkIsIgnored) {
- ASSERT_TRUE(StartEmbeddedTestServer());
-
- ASSERT_TRUE(RunPlatformAppTest(
- "platform_apps/ad_view/invalid_ad_network")) << message_;
-}
-
-class AdViewNotEnabledTest : public extensions::PlatformAppBrowserTest {
- protected:
- virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
- extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line);
- //Note: The "kEnableAdview" flag is not here!
- }
-};
-
-// This test checks an <adview> element has no behavior when the "kEnableAdview"
-// flag is missing.
-IN_PROC_BROWSER_TEST_F(AdViewNotEnabledTest, EnableAdviewFlagRequired) {
- ASSERT_TRUE(StartEmbeddedTestServer());
-
- ASSERT_TRUE(RunPlatformAppTest(
- "platform_apps/ad_view/flag_required")) << message_;
-}
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698