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

Side by Side Diff: chrome/browser/extensions/api/downloads/downloads_apitest.cc

Issue 10700024: Revert 144807 - Rewrite DownloadsApiTest in C++. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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
Property Changes:
Added: svn:mergeinfo
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 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/extensions/extension_apitest.h" 5 #include "chrome/browser/extensions/extension_apitest.h"
6 #include "chrome/browser/prefs/pref_service.h" 6 #include "chrome/browser/prefs/pref_service.h"
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/common/pref_names.h" 9 #include "chrome/common/pref_names.h"
10 10
11 class DownloadsApiTest : public ExtensionApiTest { 11 class DownloadsApiTest : public ExtensionApiTest {
12 public: 12 public:
13 void SetUpTempDownloadsDir() { 13 void SetUpTempDownloadsDir() {
14 ASSERT_TRUE(tmpdir.CreateUniqueTempDir()); 14 ASSERT_TRUE(tmpdir.CreateUniqueTempDir());
15 browser()->profile()->GetPrefs()->SetFilePath( 15 browser()->profile()->GetPrefs()->SetFilePath(
16 prefs::kDownloadDefaultDirectory, tmpdir.path()); 16 prefs::kDownloadDefaultDirectory, tmpdir.path());
17 } 17 }
18 18
19 private: 19 private:
20 ScopedTempDir tmpdir; 20 ScopedTempDir tmpdir;
21 }; 21 };
22 22
23 23
24 // This test is disabled. See bug http://crbug.com/130950 24 // This test is disabled. See bug http://crbug.com/130950
25 IN_PROC_BROWSER_TEST_F(DownloadsApiTest, DISABLED_DownloadsApiTest) { 25 IN_PROC_BROWSER_TEST_F(DownloadsApiTest, DISABLED_DownloadsApiTest) {
26 SetUpTempDownloadsDir(); 26 SetUpTempDownloadsDir();
27 ASSERT_TRUE(StartTestServer()); 27 ASSERT_TRUE(StartTestServer());
28 ASSERT_TRUE(RunExtensionTest("downloads")) << message_; 28 ASSERT_TRUE(RunExtensionTest("downloads")) << message_;
29 } 29 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/downloads/downloads_api_unittest.cc ('k') | chrome/chrome_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698