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

Side by Side Diff: chrome/browser/download/download_extension_apitest.cc

Issue 9617010: Move chrome.downloads out of experimental to dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/common/chrome_switches.h"
10 #include "chrome/common/pref_names.h"
11
12 class DownloadsApiTest : public ExtensionApiTest {
13 public:
14 void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
15 ExtensionApiTest::SetUpCommandLine(command_line);
16 command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
17 }
18
19 void SetUpTempDownloadsDir() {
20 ASSERT_TRUE(tmpdir.CreateUniqueTempDir());
21 browser()->profile()->GetPrefs()->SetFilePath(
22 prefs::kDownloadDefaultDirectory, tmpdir.path());
23 }
24
25 private:
26 ScopedTempDir tmpdir;
27 };
28
29
30 // This test is disabled. See bug http://crbug.com/130950
31 IN_PROC_BROWSER_TEST_F(DownloadsApiTest, DISABLED_DownloadsApiTest) {
32 SetUpTempDownloadsDir();
33 ASSERT_TRUE(StartTestServer());
34 ASSERT_TRUE(RunExtensionTest("downloads")) << message_;
35 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_extension_api.cc ('k') | chrome/browser/download/download_extension_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698