Roll src/third_party/WebKit e0eac24:489c548 (svn 193311:193320)
[chromium-blink-merge.git] / content / test / test_content_browser_client.h
blob7415b4f5169747108f3701cf781d3e9b8481b8f1
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.
5 #ifndef CONTENT_TEST_TEST_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_TEST_TEST_CONTENT_BROWSER_CLIENT_H_
8 #include <string>
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "base/files/scoped_temp_dir.h"
13 #include "content/public/browser/content_browser_client.h"
15 namespace content {
17 // Base for unit tests that need a ContentBrowserClient.
18 class TestContentBrowserClient : public ContentBrowserClient {
19 public:
20 TestContentBrowserClient();
21 ~TestContentBrowserClient() override;
22 base::FilePath GetDefaultDownloadDirectory() override;
24 private:
25 // Temporary directory for GetDefaultDownloadDirectory.
26 base::ScopedTempDir download_dir_;
28 DISALLOW_COPY_AND_ASSIGN(TestContentBrowserClient);
31 } // namespace content
33 #endif // CONTENT_TEST_TEST_CONTENT_BROWSER_CLIENT_H_