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

Unified Diff: components/download/internal/test/test_store.cc

Issue 2881173003: Download Service : Added leveldb proto layer (Closed)
Patch Set: Removed Model::Destroy Created 3 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/download/internal/test/test_store.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/download/internal/test/test_store.cc
diff --git a/components/download/internal/test/test_store.cc b/components/download/internal/test/test_store.cc
index 01faec77b989ba5ae43a2329756d599ec48826a2..c9e472b9461a49b78fb75cae24bbcafa8f1b4d29 100644
--- a/components/download/internal/test/test_store.cc
+++ b/components/download/internal/test/test_store.cc
@@ -9,8 +9,7 @@
namespace download {
namespace test {
-TestStore::TestStore()
- : ready_(false), init_called_(false), destroy_called_(false) {}
+TestStore::TestStore() : ready_(false), init_called_(false) {}
TestStore::~TestStore() {}
@@ -23,11 +22,6 @@ void TestStore::Initialize(InitCallback callback) {
init_callback_ = std::move(callback);
}
-void TestStore::Destroy(StoreCallback callback) {
- destroy_called_ = true;
- destroy_callback_ = std::move(callback);
-}
-
void TestStore::Update(const Entry& entry, StoreCallback callback) {
updated_entries_.push_back(entry);
update_callback_ = std::move(callback);
@@ -46,11 +40,6 @@ void TestStore::TriggerInit(bool success,
std::move(init_callback_).Run(success, std::move(entries));
}
-void TestStore::TriggerDestroy(bool success) {
- DCHECK(destroy_callback_);
- std::move(destroy_callback_).Run(success);
-}
-
void TestStore::TriggerUpdate(bool success) {
DCHECK(update_callback_);
std::move(update_callback_).Run(success);
« no previous file with comments | « components/download/internal/test/test_store.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698