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

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

Issue 475063004: IndexedDB + Coding Style: re-order enums/typedefs/... to match guide (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased after r291485 Created 6 years, 4 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_active_blob_registry_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_active_blob_registry_unittest.cc b/content/browser/indexed_db/indexed_db_active_blob_registry_unittest.cc
index 1d9407c6c62e1c12dc27451e2aeb2fd950727a96..ee43019f05a175011bfd2c8e7a6246c69b779023 100644
--- a/content/browser/indexed_db/indexed_db_active_blob_registry_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_active_blob_registry_unittest.cc
@@ -55,6 +55,9 @@ class RegistryTestMockFactory : public MockIndexedDBFactory {
class MockIDBBackingStore : public IndexedDBFakeBackingStore {
public:
+ typedef std::pair<int64, int64> KeyPair;
+ typedef std::set<KeyPair> KeyPairSet;
+
MockIDBBackingStore(IndexedDBFactory* factory,
base::SequencedTaskRunner* task_runner)
: IndexedDBFakeBackingStore(factory, task_runner),
@@ -64,8 +67,6 @@ class MockIDBBackingStore : public IndexedDBFakeBackingStore {
unused_blobs_.insert(std::make_pair(database_id, blob_key));
}
- typedef std::pair<int64, int64> KeyPair;
- typedef std::set<KeyPair> KeyPairSet;
bool CheckUnusedBlobsEmpty() const {
return !duplicate_calls_ && !unused_blobs_.size();
}
@@ -89,6 +90,14 @@ class MockIDBBackingStore : public IndexedDBFakeBackingStore {
// Base class for our test fixtures.
class IndexedDBActiveBlobRegistryTest : public testing::Test {
public:
+ typedef storage::ShareableFileReference::FinalReleaseCallback
+ ReleaseCallback;
+
+ static const int64 kDatabaseId0 = 7;
+ static const int64 kDatabaseId1 = 12;
+ static const int64 kBlobKey0 = 77;
+ static const int64 kBlobKey1 = 14;
+
IndexedDBActiveBlobRegistryTest()
: task_runner_(new base::TestSimpleTaskRunner),
factory_(new RegistryTestMockFactory),
@@ -100,13 +109,6 @@ class IndexedDBActiveBlobRegistryTest : public testing::Test {
MockIDBBackingStore* backing_store() const { return backing_store_.get(); }
IndexedDBActiveBlobRegistry* registry() const { return registry_.get(); }
- static const int64 kDatabaseId0 = 7;
- static const int64 kDatabaseId1 = 12;
- static const int64 kBlobKey0 = 77;
- static const int64 kBlobKey1 = 14;
-
- typedef storage::ShareableFileReference::FinalReleaseCallback ReleaseCallback;
-
private:
scoped_refptr<base::TestSimpleTaskRunner> task_runner_;
scoped_refptr<RegistryTestMockFactory> factory_;
« no previous file with comments | « content/browser/indexed_db/indexed_db_active_blob_registry.h ('k') | content/browser/indexed_db/indexed_db_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698