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

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

Issue 18075008: IndexedDB: Switch key/value handling from vector<char> to std::string (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
Index: content/browser/indexed_db/indexed_db_backing_store_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_backing_store_unittest.cc b/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
index 2a49de4fe76bb85f64b5035a22dc310512a54071..d9c95bba4bb0a2f78147f07f0072196e00566c1b 100644
--- a/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_backing_store_unittest.cc
@@ -51,9 +51,9 @@ class IndexedDBBackingStoreTest : public testing::Test {
IndexedDBKey m_key1;
IndexedDBKey m_key2;
IndexedDBKey m_key3;
- std::vector<char> m_value1;
- std::vector<char> m_value2;
- std::vector<char> m_value3;
+ std::string m_value1;
+ std::string m_value2;
+ std::string m_value3;
};
TEST_F(IndexedDBBackingStoreTest, PutGetConsistency) {
@@ -70,7 +70,7 @@ TEST_F(IndexedDBBackingStoreTest, PutGetConsistency) {
{
IndexedDBBackingStore::Transaction transaction2(backing_store_);
transaction2.Begin();
- std::vector<char> result_value;
+ std::string result_value;
bool ok =
backing_store_->GetRecord(&transaction2, 1, 1, m_key1, &result_value);
transaction2.Commit();
@@ -90,7 +90,7 @@ TEST_F(IndexedDBBackingStoreTest, HighIds) {
const int64 invalid_high_index_id = 1ULL << 37;
const IndexedDBKey& index_key = m_key2;
- std::vector<char> index_key_raw;
+ std::string index_key_raw;
EncodeIDBKey(index_key, &index_key_raw);
{
IndexedDBBackingStore::Transaction transaction1(backing_store_);
@@ -127,7 +127,7 @@ TEST_F(IndexedDBBackingStoreTest, HighIds) {
{
IndexedDBBackingStore::Transaction transaction2(backing_store_);
transaction2.Begin();
- std::vector<char> result_value;
+ std::string result_value;
bool ok = backing_store_->GetRecord(&transaction2,
high_database_id,
high_object_store_id,
@@ -167,7 +167,7 @@ TEST_F(IndexedDBBackingStoreTest, InvalidIds) {
const int64 index_id = kMinimumIndexId;
const int64 invalid_low_index_id = 19; // index_ids must be > kMinimumIndexId
- std::vector<char> result_value;
+ std::string result_value;
IndexedDBBackingStore::Transaction transaction1(backing_store_);
transaction1.Begin();

Powered by Google App Engine
This is Rietveld 408576698