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

Side by Side Diff: storage/browser/test/mock_storage_client.cc

Issue 2814123005: Move storage quota unit tests and test doubles next to the files they cover. (Closed)
Patch Set: Move test from test_support to tests target :) 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 | « storage/browser/test/mock_storage_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/mock_storage_client.h" 5 #include "storage/browser/test/mock_storage_client.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/single_thread_task_runner.h" 12 #include "base/single_thread_task_runner.h"
13 #include "base/stl_util.h" 13 #include "base/stl_util.h"
14 #include "base/threading/thread_task_runner_handle.h" 14 #include "base/threading/thread_task_runner_handle.h"
15 #include "net/base/url_util.h" 15 #include "net/base/url_util.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 int64_t delta = itr->second; 182 int64_t delta = itr->second;
183 quota_manager_proxy_-> 183 quota_manager_proxy_->
184 NotifyStorageModified(id(), origin_url, type, -delta); 184 NotifyStorageModified(id(), origin_url, type, -delta);
185 origin_data_.erase(itr); 185 origin_data_.erase(itr);
186 } 186 }
187 187
188 callback.Run(kQuotaStatusOk); 188 callback.Run(kQuotaStatusOk);
189 } 189 }
190 190
191 } // namespace content 191 } // namespace content
OLDNEW
« no previous file with comments | « storage/browser/test/mock_storage_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698