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

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

Issue 2798503002: Extensions: Pull duplicated functionality into ExtensionsTest fixture. (Closed)
Patch Set: Add TODO for comments. Created 3 years, 8 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
« no previous file with comments | « no previous file | content/public/test/test_browser_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 scoped_refptr<net::URLRequestContextGetter> request_context_; 65 scoped_refptr<net::URLRequestContextGetter> request_context_;
66 std::unique_ptr<MockResourceContext> resource_context_; 66 std::unique_ptr<MockResourceContext> resource_context_;
67 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_; 67 scoped_refptr<storage::SpecialStoragePolicy> special_storage_policy_;
68 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_; 68 std::unique_ptr<MockSSLHostStateDelegate> ssl_host_state_delegate_;
69 std::unique_ptr<PermissionManager> permission_manager_; 69 std::unique_ptr<PermissionManager> permission_manager_;
70 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_; 70 std::unique_ptr<MockBackgroundSyncController> background_sync_controller_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext); 72 DISALLOW_COPY_AND_ASSIGN(TestBrowserContext);
73 }; 73 };
74 74
75 // An incognito version of a TestBrowserContext.
76 class TestBrowserContextIncognito : public TestBrowserContext {
77 public:
78 TestBrowserContextIncognito();
79 ~TestBrowserContextIncognito() override;
80
81 // TestBrowserContext implementation.
82 bool IsOffTheRecord() const override;
sky 2017/04/04 20:43:37 How about a setter on TestBrowserContext as if in
karandeepb 2017/04/04 23:03:16 Done.
83
84 private:
85 DISALLOW_COPY_AND_ASSIGN(TestBrowserContextIncognito);
86 };
87
75 } // namespace content 88 } // namespace content
76 89
77 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_ 90 #endif // CONTENT_PUBLIC_TEST_TEST_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | content/public/test/test_browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698