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

Unified Diff: sync/internal_api/attachments/attachment_store_test_template.h

Issue 1002263005: [Sync] Introduce AttachmentStoreForSync class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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: sync/internal_api/attachments/attachment_store_test_template.h
diff --git a/sync/internal_api/attachments/attachment_store_test_template.h b/sync/internal_api/attachments/attachment_store_test_template.h
index 6292b012d7ce01c96ddc0ac830a91169711406aa..80208a32f2533333895fb2faa8c2cc8f1567f453 100644
--- a/sync/internal_api/attachments/attachment_store_test_template.h
+++ b/sync/internal_api/attachments/attachment_store_test_template.h
@@ -128,6 +128,13 @@ class AttachmentStoreTest : public testing::Test {
TYPED_TEST_CASE_P(AttachmentStoreTest);
+// Verify that CreateAttachmentStoreForSync() creates valid object.
+TYPED_TEST_P(AttachmentStoreTest, CreateAttachmentStoreForSync) {
+ scoped_ptr<AttachmentStoreForSync> attachment_store_for_sync =
+ this->store->CreateAttachmentStoreForSync();
+ EXPECT_NE(nullptr, attachment_store_for_sync);
+}
+
// Verify that we do not overwrite existing attachments and that we do not treat
// it as an error.
TYPED_TEST_P(AttachmentStoreTest, Write_NoOverwriteNoError) {
@@ -386,6 +393,7 @@ TYPED_TEST_P(AttachmentStoreTest, ReadAllMetadata) {
}
REGISTER_TYPED_TEST_CASE_P(AttachmentStoreTest,
+ CreateAttachmentStoreForSync,
Write_NoOverwriteNoError,
Write_RoundTrip,
Read_OneNotFound,

Powered by Google App Engine
This is Rietveld 408576698