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

Unified Diff: content/browser/indexed_db/indexed_db_database_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: Remove C++11ism 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_database_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_database_unittest.cc b/content/browser/indexed_db/indexed_db_database_unittest.cc
index 39bb95549cc8831b6845aeda2911ce49dda69435..a49736bbce528d120367a7f7df44207cc8ae9ae1 100644
--- a/content/browser/indexed_db/indexed_db_database_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_database_unittest.cc
@@ -4,8 +4,6 @@
#include "content/browser/indexed_db/indexed_db_database.h"
-#include <gtest/gtest.h>
-
#include "base/auto_reset.h"
#include "base/logging.h"
#include "base/strings/string16.h"
@@ -20,6 +18,7 @@
#include "content/browser/indexed_db/indexed_db_factory.h"
#include "content/browser/indexed_db/indexed_db_fake_backing_store.h"
#include "content/browser/indexed_db/indexed_db_transaction.h"
+#include "testing/gtest/include/gtest/gtest.h"
namespace content {
@@ -46,25 +45,25 @@ class MockIDBCallbacks : public IndexedDBCallbacks {
virtual void OnSuccess(scoped_refptr<IndexedDBCursor> cursor,
const IndexedDBKey& key,
const IndexedDBKey& primary_key,
- std::vector<char>* value) OVERRIDE {}
+ std::string* value) OVERRIDE {}
virtual void OnSuccess(scoped_ptr<IndexedDBConnection> connection,
const IndexedDBDatabaseMetadata& metadata) OVERRIDE {
connection_ = connection.Pass();
}
virtual void OnSuccess(const IndexedDBKey& key) OVERRIDE {}
- virtual void OnSuccess(std::vector<char>* value) OVERRIDE {}
- virtual void OnSuccess(std::vector<char>* value,
+ virtual void OnSuccess(std::string* value) OVERRIDE {}
+ virtual void OnSuccess(std::string* value,
const IndexedDBKey& key,
const IndexedDBKeyPath& key_path) OVERRIDE {}
virtual void OnSuccess(int64 value) OVERRIDE {}
virtual void OnSuccess() OVERRIDE {}
virtual void OnSuccess(const IndexedDBKey& key,
const IndexedDBKey& primary_key,
- std::vector<char>* value) OVERRIDE {}
+ std::string* value) OVERRIDE {}
virtual void OnSuccessWithPrefetch(
const std::vector<IndexedDBKey>& keys,
const std::vector<IndexedDBKey>& primary_keys,
- const std::vector<std::vector<char> >& values) OVERRIDE {}
+ const std::vector<std::string>& values) OVERRIDE {}
IndexedDBConnection* connection() { return connection_.get(); }
« no previous file with comments | « content/browser/indexed_db/indexed_db_database.cc ('k') | content/browser/indexed_db/indexed_db_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698