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

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

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
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 "content/public/test/test_browser_context.h" 5 #include "content/public/test/test_browser_context.h"
6 6
7 #include <utility>
8
7 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
8 #include "base/test/null_task_runner.h" 10 #include "base/test/null_task_runner.h"
9 #include "content/public/browser/background_sync_controller.h" 11 #include "content/public/browser/background_sync_controller.h"
10 #include "content/public/test/mock_resource_context.h" 12 #include "content/public/test/mock_resource_context.h"
11 #include "content/test/mock_ssl_host_state_delegate.h" 13 #include "content/test/mock_ssl_host_state_delegate.h"
12 #include "net/url_request/url_request_context.h" 14 #include "net/url_request/url_request_context.h"
13 #include "net/url_request/url_request_context_getter.h" 15 #include "net/url_request/url_request_context_getter.h"
14 #include "net/url_request/url_request_test_util.h" 16 #include "net/url_request/url_request_test_util.h"
15 #include "storage/browser/quota/special_storage_policy.h" 17 #include "storage/browser/quota/special_storage_policy.h"
16 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 return browser_context_dir_.Take(); 54 return browser_context_dir_.Take();
53 } 55 }
54 56
55 void TestBrowserContext::SetSpecialStoragePolicy( 57 void TestBrowserContext::SetSpecialStoragePolicy(
56 storage::SpecialStoragePolicy* policy) { 58 storage::SpecialStoragePolicy* policy) {
57 special_storage_policy_ = policy; 59 special_storage_policy_ = policy;
58 } 60 }
59 61
60 void TestBrowserContext::SetBackgroundSyncController( 62 void TestBrowserContext::SetBackgroundSyncController(
61 scoped_ptr<BackgroundSyncController> controller) { 63 scoped_ptr<BackgroundSyncController> controller) {
62 background_sync_controller_ = controller.Pass(); 64 background_sync_controller_ = std::move(controller);
63 } 65 }
64 66
65 base::FilePath TestBrowserContext::GetPath() const { 67 base::FilePath TestBrowserContext::GetPath() const {
66 return browser_context_dir_.path(); 68 return browser_context_dir_.path();
67 } 69 }
68 70
69 scoped_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate( 71 scoped_ptr<ZoomLevelDelegate> TestBrowserContext::CreateZoomLevelDelegate(
70 const base::FilePath& partition_path) { 72 const base::FilePath& partition_path) {
71 return scoped_ptr<ZoomLevelDelegate>(); 73 return scoped_ptr<ZoomLevelDelegate>();
72 } 74 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 140
139 PermissionManager* TestBrowserContext::GetPermissionManager() { 141 PermissionManager* TestBrowserContext::GetPermissionManager() {
140 return NULL; 142 return NULL;
141 } 143 }
142 144
143 BackgroundSyncController* TestBrowserContext::GetBackgroundSyncController() { 145 BackgroundSyncController* TestBrowserContext::GetBackgroundSyncController() {
144 return background_sync_controller_.get(); 146 return background_sync_controller_.get();
145 } 147 }
146 148
147 } // namespace content 149 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/public/test/test_download_request_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698