aboutsummaryrefslogtreecommitdiff
path: root/cpp/test/fake_storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/fake_storage.h')
-rw-r--r--cpp/test/fake_storage.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/cpp/test/fake_storage.h b/cpp/test/fake_storage.h
index e14c443..5e07cb0 100644
--- a/cpp/test/fake_storage.h
+++ b/cpp/test/fake_storage.h
@@ -45,8 +45,9 @@ namespace addressinput {
// private:
// void OnDataReady(bool success,
// const std::string& key,
-// const std::string& data) {
+// std::string* data) {
// ...
+// delete data;
// }
//
// FakeStorage storage_;
@@ -60,11 +61,11 @@ class FakeStorage : public Storage {
virtual ~FakeStorage();
// Storage implementation.
- virtual void Put(const std::string& key, const std::string& data);
+ virtual void Put(const std::string& key, std::string* data);
virtual void Get(const std::string& key, const Callback& data_ready) const;
private:
- std::map<std::string, std::string> data_;
+ std::map<std::string, std::string*> data_;
};
} // namespace addressinput