summaryrefslogtreecommitdiffstats
path: root/content/browser/mock_content_browser_client.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/mock_content_browser_client.h')
-rw-r--r--content/browser/mock_content_browser_client.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/content/browser/mock_content_browser_client.h b/content/browser/mock_content_browser_client.h
index 8af7faa..e5ae25b 100644
--- a/content/browser/mock_content_browser_client.h
+++ b/content/browser/mock_content_browser_client.h
@@ -8,7 +8,9 @@
#include <string>
+#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/scoped_temp_dir.h"
#include "content/browser/content_browser_client.h"
namespace content {
@@ -16,6 +18,7 @@ namespace content {
// Base for unit tests that need to mock the ContentBrowserClient.
class MockContentBrowserClient : public ContentBrowserClient {
public:
+ MockContentBrowserClient();
virtual ~MockContentBrowserClient();
virtual BrowserMainParts* CreateBrowserMainParts(
@@ -137,6 +140,12 @@ class MockContentBrowserClient : public ContentBrowserClient {
crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
const GURL& url) OVERRIDE;
#endif
+
+ private:
+ // Temporary directory for GetDefaultDownloadDirectory.
+ ScopedTempDir download_dir_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockContentBrowserClient);
};
} // namespace content