| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "components/sync/engine/attachments/attachment_store_frontend.h" | 5 #include "components/sync/engine/attachments/attachment_store_frontend.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 | 221 |
| 222 attachment_store_frontend_->ReadMetadata( | 222 attachment_store_frontend_->ReadMetadata( |
| 223 AttachmentStore::SYNC, | 223 AttachmentStore::SYNC, |
| 224 base::Bind(&AttachmentStoreFrontendTest::ReadMetadataDone)); | 224 base::Bind(&AttachmentStoreFrontendTest::ReadMetadataDone)); |
| 225 EXPECT_EQ(read_metadata_call_count_, 0); | 225 EXPECT_EQ(read_metadata_call_count_, 0); |
| 226 RunMessageLoop(); | 226 RunMessageLoop(); |
| 227 EXPECT_EQ(read_metadata_call_count_, 1); | 227 EXPECT_EQ(read_metadata_call_count_, 1); |
| 228 | 228 |
| 229 // Releasing referehce to AttachmentStoreFrontend should result in | 229 // Releasing referehce to AttachmentStoreFrontend should result in |
| 230 // MockAttachmentStore being deleted on backend loop. | 230 // MockAttachmentStore being deleted on backend loop. |
| 231 attachment_store_frontend_ = NULL; | 231 attachment_store_frontend_ = nullptr; |
| 232 EXPECT_EQ(dtor_call_count_, 0); | 232 EXPECT_EQ(dtor_call_count_, 0); |
| 233 RunMessageLoop(); | 233 RunMessageLoop(); |
| 234 EXPECT_EQ(dtor_call_count_, 1); | 234 EXPECT_EQ(dtor_call_count_, 1); |
| 235 } | 235 } |
| 236 | 236 |
| 237 } // namespace syncer | 237 } // namespace syncer |
| OLD | NEW |