OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/apps/app_browsertest_util.h" |
5 #include "chrome/browser/extensions/extension_test_message_listener.h" | 6 #include "chrome/browser/extensions/extension_test_message_listener.h" |
6 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | |
7 #include "chrome/common/chrome_switches.h" | 7 #include "chrome/common/chrome_switches.h" |
8 #include "content/test/net/url_request_prepackaged_interceptor.h" | 8 #include "content/test/net/url_request_prepackaged_interceptor.h" |
9 #include "net/url_request/url_fetcher.h" | 9 #include "net/url_request/url_fetcher.h" |
10 | 10 |
11 class AdViewTest : public extensions::PlatformAppBrowserTest { | 11 class AdViewTest : public extensions::PlatformAppBrowserTest { |
12 protected: | 12 protected: |
13 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { | 13 virtual void SetUpCommandLine(CommandLine* command_line) OVERRIDE { |
14 extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line); | 14 extensions::PlatformAppBrowserTest::SetUpCommandLine(command_line); |
15 command_line->AppendSwitch(switches::kEnableAdview); | 15 command_line->AppendSwitch(switches::kEnableAdview); |
16 command_line->AppendSwitch(switches::kEnableAdviewSrcAttribute); | 16 command_line->AppendSwitch(switches::kEnableAdviewSrcAttribute); |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 }; | 159 }; |
160 | 160 |
161 // This test checks an <adview> element has no behavior when the "kEnableAdview" | 161 // This test checks an <adview> element has no behavior when the "kEnableAdview" |
162 // flag is missing. | 162 // flag is missing. |
163 IN_PROC_BROWSER_TEST_F(AdViewNotEnabledTest, EnableAdviewFlagRequired) { | 163 IN_PROC_BROWSER_TEST_F(AdViewNotEnabledTest, EnableAdviewFlagRequired) { |
164 ASSERT_TRUE(StartEmbeddedTestServer()); | 164 ASSERT_TRUE(StartEmbeddedTestServer()); |
165 | 165 |
166 ASSERT_TRUE(RunPlatformAppTest( | 166 ASSERT_TRUE(RunPlatformAppTest( |
167 "platform_apps/ad_view/flag_required")) << message_; | 167 "platform_apps/ad_view/flag_required")) << message_; |
168 } | 168 } |
OLD | NEW |