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

Unified Diff: content/browser/indexed_db/indexed_db_transaction_unittest.cc

Issue 2519073003: IndexedDB: IndexedDBDatabase::Create() returning db/status tuple. (Closed)
Patch Set: Swapped db/s to reflect order in tuple Created 4 years, 1 month 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 | « content/browser/indexed_db/indexed_db_factory_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/indexed_db/indexed_db_transaction_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_transaction_unittest.cc b/content/browser/indexed_db/indexed_db_transaction_unittest.cc
index bcd30a2e29f481c99a855ffbcd9d1379e4046c69..b5d25299c7396f1028f64afd8ac2a5d6dd7015d2 100644
--- a/content/browser/indexed_db/indexed_db_transaction_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_transaction_unittest.cc
@@ -48,11 +48,9 @@ class IndexedDBTransactionTest : public testing::Test {
// "peculiarity of C++". More info at
// https://github.com/google/googletest/blob/master/googletest/docs/FAQ.md#my-compiler-complains-that-a-constructor-or-destructor-cannot-return-a-value-whats-going-on
leveldb::Status s;
- db_ = IndexedDBDatabase::Create(base::ASCIIToUTF16("db"),
- backing_store_.get(),
- factory_.get(),
- IndexedDBDatabase::Identifier(),
- &s);
+ std::tie(db_, s) = IndexedDBDatabase::Create(
+ base::ASCIIToUTF16("db"), backing_store_.get(), factory_.get(),
+ IndexedDBDatabase::Identifier());
ASSERT_TRUE(s.ok());
}
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698