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

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

Issue 312093005: IndexedDB: Sprinkle DISALLOW_COPY_AND_ASSIGN where appropriate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing private: Created 6 years, 6 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_factory_unittest.cc
diff --git a/content/browser/indexed_db/indexed_db_factory_unittest.cc b/content/browser/indexed_db/indexed_db_factory_unittest.cc
index f30f45128bb8a83a50385b9c4292f48abb593247..ba7de61b9a1df61f22ab0dfbe3ccb77035a310ce 100644
--- a/content/browser/indexed_db/indexed_db_factory_unittest.cc
+++ b/content/browser/indexed_db/indexed_db_factory_unittest.cc
@@ -58,6 +58,8 @@ class MockIDBFactory : public IndexedDBFactory {
private:
virtual ~MockIDBFactory() {}
+
+ DISALLOW_COPY_AND_ASSIGN(MockIDBFactory);
};
} // namespace
@@ -210,6 +212,8 @@ class DiskFullFactory : public IndexedDBFactory {
*disk_full = true;
return scoped_refptr<IndexedDBBackingStore>();
}
+
+ DISALLOW_COPY_AND_ASSIGN(DiskFullFactory);
};
class LookingForQuotaErrorMockCallbacks : public IndexedDBCallbacks {
@@ -225,6 +229,8 @@ class LookingForQuotaErrorMockCallbacks : public IndexedDBCallbacks {
private:
virtual ~LookingForQuotaErrorMockCallbacks() {}
bool error_called_;
+
+ DISALLOW_COPY_AND_ASSIGN(LookingForQuotaErrorMockCallbacks);
};
TEST_F(IndexedDBFactoryTest, QuotaErrorOnDiskFull) {
@@ -421,6 +427,8 @@ TEST_F(IndexedDBFactoryTest, ForceCloseReleasesBackingStore) {
class UpgradeNeededCallbacks : public MockIndexedDBCallbacks {
public:
+ UpgradeNeededCallbacks() {}
+
virtual void OnSuccess(scoped_ptr<IndexedDBConnection> connection,
const IndexedDBDatabaseMetadata& metadata) OVERRIDE {
EXPECT_TRUE(connection_.get());
@@ -436,6 +444,9 @@ class UpgradeNeededCallbacks : public MockIndexedDBCallbacks {
protected:
virtual ~UpgradeNeededCallbacks() {}
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(UpgradeNeededCallbacks);
};
class ErrorCallbacks : public MockIndexedDBCallbacks {
@@ -450,6 +461,8 @@ class ErrorCallbacks : public MockIndexedDBCallbacks {
private:
virtual ~ErrorCallbacks() {}
bool saw_error_;
+
+ DISALLOW_COPY_AND_ASSIGN(ErrorCallbacks);
};
TEST_F(IndexedDBFactoryTest, DatabaseFailedOpen) {
« no previous file with comments | « content/browser/indexed_db/indexed_db_factory.h ('k') | content/browser/indexed_db/indexed_db_fake_backing_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698