Revert "Populate EEP estimate in NQE"
[chromium-blink-merge.git] / sync / api / attachments / attachment_id_unittest.cc
blobdae5182e708f61d8b11b770b9f564cb9d17abaf7
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.h"
7 #include <string>
9 #include "testing/gtest/include/gtest/gtest.h"
11 namespace syncer {
13 class AttachmentIdTest : public testing::Test {};
15 TEST_F(AttachmentIdTest, Create_IsUnique) {
16 AttachmentId id1 = AttachmentId::Create(0, 0);
17 AttachmentId id2 = AttachmentId::Create(0, 0);
18 EXPECT_NE(id1, id2);
21 TEST_F(AttachmentIdTest, OperatorEqual) {
22 AttachmentId id1 = AttachmentId::Create(0, 0);
23 AttachmentId id2(id1);
24 EXPECT_EQ(id1, id2);
27 TEST_F(AttachmentIdTest, OperatorLess) {
28 AttachmentId id1 = AttachmentId::Create(0, 0);
29 EXPECT_FALSE(id1 < id1);
31 AttachmentId id2 = AttachmentId::Create(0, 0);
32 EXPECT_FALSE(id1 < id1);
34 EXPECT_NE(id1, id2);
35 if (id1 < id2) {
36 EXPECT_FALSE(id2 < id1);
37 } else {
38 EXPECT_TRUE(id2 < id1);
42 } // namespace syncer