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

Side by Side Diff: content/test/test_browser_context.h

Issue 9564001: Clean up password manager code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a unit test for sub-frame navigation Created 8 years, 9 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
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 #ifndef CONTENT_TEST_TEST_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_TEST_TEST_BROWSER_CONTEXT_H_
6 #define CONTENT_TEST_TEST_BROWSER_CONTEXT_H_ 6 #define CONTENT_TEST_TEST_BROWSER_CONTEXT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 12 matching lines...) Expand all
23 TestBrowserContext(); 23 TestBrowserContext();
24 virtual ~TestBrowserContext(); 24 virtual ~TestBrowserContext();
25 25
26 // Takes ownership of the temporary directory so that it's not deleted when 26 // Takes ownership of the temporary directory so that it's not deleted when
27 // this object is destructed. 27 // this object is destructed.
28 FilePath TakePath(); 28 FilePath TakePath();
29 29
30 void SetSpecialStoragePolicy(quota::SpecialStoragePolicy* policy); 30 void SetSpecialStoragePolicy(quota::SpecialStoragePolicy* policy);
31 31
32 virtual FilePath GetPath() OVERRIDE; 32 virtual FilePath GetPath() OVERRIDE;
33 virtual bool IsOffTheRecord() OVERRIDE; 33 virtual bool IsOffTheRecord() const OVERRIDE;
34 virtual content::DownloadManager* GetDownloadManager() OVERRIDE; 34 virtual content::DownloadManager* GetDownloadManager() OVERRIDE;
35 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE; 35 virtual net::URLRequestContextGetter* GetRequestContext() OVERRIDE;
36 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 36 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
37 int renderer_child_id) OVERRIDE; 37 int renderer_child_id) OVERRIDE;
38 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE; 38 virtual net::URLRequestContextGetter* GetRequestContextForMedia() OVERRIDE;
39 virtual content::ResourceContext* GetResourceContext() OVERRIDE; 39 virtual content::ResourceContext* GetResourceContext() OVERRIDE;
40 virtual content::GeolocationPermissionContext* 40 virtual content::GeolocationPermissionContext*
41 GetGeolocationPermissionContext() OVERRIDE; 41 GetGeolocationPermissionContext() OVERRIDE;
42 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE; 42 virtual content::SpeechInputPreferences* GetSpeechInputPreferences() OVERRIDE;
43 virtual bool DidLastSessionExitCleanly() OVERRIDE; 43 virtual bool DidLastSessionExitCleanly() OVERRIDE;
44 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE; 44 virtual quota::SpecialStoragePolicy* GetSpecialStoragePolicy() OVERRIDE;
45 45
46 private: 46 private:
47 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly); 47 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SessionOnly);
48 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SaveSessionState); 48 FRIEND_TEST_ALL_PREFIXES(DOMStorageTest, SaveSessionState);
49 49
50 scoped_ptr<content::MockResourceContext> resource_context_; 50 scoped_ptr<content::MockResourceContext> resource_context_;
51 ScopedTempDir browser_context_dir_; 51 ScopedTempDir browser_context_dir_;
52 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_; 52 scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
53 53
54 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); 54 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext);
55 }; 55 };
56 56
57 #endif // CONTENT_TEST_TEST_BROWSER_CONTEXT_H_ 57 #endif // CONTENT_TEST_TEST_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698