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

Unified 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: . Created 8 years, 7 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/download/download_extension_apitest.cc
diff --git a/chrome/browser/download/download_extension_apitest.cc b/chrome/browser/download/download_extension_apitest.cc
deleted file mode 100644
index a0493201f431bdc18acf5f31c8c399e99636ee7e..0000000000000000000000000000000000000000
--- a/chrome/browser/download/download_extension_apitest.cc
+++ /dev/null
@@ -1,33 +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.
-
-#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"
-
-class DownloadsApiTest : public ExtensionApiTest {
- public:
- void SetUpCommandLine(CommandLine* command_line) OVERRIDE {
- ExtensionApiTest::SetUpCommandLine(command_line);
- command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
- }
-
- void SetUpTempDownloadsDir() {
- ASSERT_TRUE(tmpdir.CreateUniqueTempDir());
- browser()->profile()->GetPrefs()->SetFilePath(
- prefs::kDownloadDefaultDirectory, tmpdir.path());
- }
-
- private:
- ScopedTempDir tmpdir;
-};
-
-IN_PROC_BROWSER_TEST_F(DownloadsApiTest, DownloadsApiTest) {
- SetUpTempDownloadsDir();
- ASSERT_TRUE(StartTestServer());
- ASSERT_TRUE(RunExtensionTest("downloads")) << message_;
-}

Powered by Google App Engine
This is Rietveld 408576698