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/apps/ad_view_browsertest.cc

Issue 23003004: Move apps tests from c/b/extensions to c/b/apps and refine DEPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Correct ordering in typi Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/app_controller_mac_browsertest.mm ('k') | chrome/browser/apps/app_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698