Remove linux_chromium_gn_dbg from the chromium CQ.
[chromium-blink-merge.git] / sync / api / attachments / attachment_metadata_unittest.cc
bloba736b7eceb339e5d2d665627a0e9c8dd787982fd
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
3 // found in the LICENSE file.
5 #include "sync/api/attachments/attachment_metadata.h"
7 #include "testing/gtest/include/gtest/gtest.h"
9 namespace syncer {
11 class AttachmentMetadataTest : public testing::Test {};
13 TEST_F(AttachmentMetadataTest, Create) {
14 size_t size = 42;
15 uint32_t crc32c = 2349829;
16 AttachmentId id = AttachmentId::Create(size, crc32c);
17 AttachmentMetadata metadata(id, size);
18 EXPECT_EQ(metadata.GetId(), id);
19 EXPECT_EQ(metadata.GetSize(), size);
22 } // namespace syncer