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

Unified Diff: third_party/libaddressinput/chromium/cpp/test/storage_test_runner.cc

Issue 148463003: libaddressinput - reduce number of copies in storage class by 2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 6 years, 10 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 | « third_party/libaddressinput/chromium/cpp/test/retriever_test.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libaddressinput/chromium/cpp/test/storage_test_runner.cc
diff --git a/third_party/libaddressinput/chromium/cpp/test/storage_test_runner.cc b/third_party/libaddressinput/chromium/cpp/test/storage_test_runner.cc
index aac52e14f2962a46345384c78d9f870530495e59..ff9895ee76de7bc6247ac724af12471ec1a6d2f4 100644
--- a/third_party/libaddressinput/chromium/cpp/test/storage_test_runner.cc
+++ b/third_party/libaddressinput/chromium/cpp/test/storage_test_runner.cc
@@ -63,7 +63,7 @@ void StorageTestRunner::GetWithoutPutReturnsEmptyData() {
void StorageTestRunner::GetReturnsWhatWasPut() {
ClearValues();
- storage_->Put("key", "value");
+ storage_->Put("key", make_scoped_ptr(new std::string("value")));
storage_->Get("key", BuildCallback());
EXPECT_TRUE(success_);
@@ -73,8 +73,8 @@ void StorageTestRunner::GetReturnsWhatWasPut() {
void StorageTestRunner::SecondPutOverwritesData() {
ClearValues();
- storage_->Put("key", "bad-value");
- storage_->Put("key", "good-value");
+ storage_->Put("key", make_scoped_ptr(new std::string("bad-value")));
+ storage_->Put("key", make_scoped_ptr(new std::string("good-value")));
storage_->Get("key", BuildCallback());
EXPECT_TRUE(success_);
« no previous file with comments | « third_party/libaddressinput/chromium/cpp/test/retriever_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698