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

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

Issue 11346016: Move remaining content test code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 (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 <sstream> 5 #include <sstream>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 #include "net/base/net_util.h" 68 #include "net/base/net_util.h"
69 #include "net/test/test_server.h" 69 #include "net/test/test_server.h"
70 #include "testing/gtest/include/gtest/gtest.h" 70 #include "testing/gtest/include/gtest/gtest.h"
71 71
72 using content::BrowserContext; 72 using content::BrowserContext;
73 using content::BrowserThread; 73 using content::BrowserThread;
74 using content::DownloadItem; 74 using content::DownloadItem;
75 using content::DownloadManager; 75 using content::DownloadManager;
76 using content::DownloadPersistentStoreInfo; 76 using content::DownloadPersistentStoreInfo;
77 using content::DownloadUrlParameters; 77 using content::DownloadUrlParameters;
78 using content::URLRequestMockHTTPJob;
79 using content::URLRequestSlowDownloadJob;
78 using content::WebContents; 80 using content::WebContents;
79 using extensions::Extension; 81 using extensions::Extension;
80 using extensions::FeatureSwitch; 82 using extensions::FeatureSwitch;
81 83
82 namespace { 84 namespace {
83 85
84 // IDs and paths of CRX files used in tests. 86 // IDs and paths of CRX files used in tests.
85 const char kGoodCrxId[] = "ldnnhddmnhbkjipkidpdiheffobcpfmf"; 87 const char kGoodCrxId[] = "ldnnhddmnhbkjipkidpdiheffobcpfmf";
86 const FilePath kGoodCrxPath(FILE_PATH_LITERAL("extensions/good.crx")); 88 const FilePath kGoodCrxPath(FILE_PATH_LITERAL("extensions/good.crx"));
87 89
(...skipping 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after
2281 scoped_ptr<DownloadUrlParameters> params( 2283 scoped_ptr<DownloadUrlParameters> params(
2282 DownloadUrlParameters::FromWebContents( 2284 DownloadUrlParameters::FromWebContents(
2283 web_contents, url, save_info.Pass())); 2285 web_contents, url, save_info.Pass()));
2284 params->set_callback(base::Bind(&SetHiddenDownloadCallback)); 2286 params->set_callback(base::Bind(&SetHiddenDownloadCallback));
2285 download_manager->DownloadUrl(params.Pass()); 2287 download_manager->DownloadUrl(params.Pass());
2286 observer->WaitForFinished(); 2288 observer->WaitForFinished();
2287 2289
2288 // Verify that download shelf is not shown. 2290 // Verify that download shelf is not shown.
2289 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible()); 2291 EXPECT_FALSE(browser()->window()->IsDownloadShelfVisible());
2290 } 2292 }
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/content_settings_browsertest.cc ('k') | chrome/browser/download/save_page_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698