summaryrefslogtreecommitdiffstats
path: root/sync/api/attachments/attachment_metadata_unittest.cc
blob: 06477d0830c19bb449dcac670d33dabedb9b8a1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "sync/api/attachments/attachment_metadata.h"

#include "testing/gtest/include/gtest/gtest.h"

namespace syncer {

class AttachmentMetadataTest : public testing::Test {};

TEST_F(AttachmentMetadataTest, Create) {
  AttachmentId id = AttachmentId::Create();
  size_t size = 42;
  AttachmentMetadata metadata(id, size);
  EXPECT_EQ(metadata.GetId(), id);
  EXPECT_EQ(metadata.GetSize(), size);
}

}  // namespace syncer