entity_data_unittest.cc 715 B

123456789101112131415161718192021222324252627
  1. // Copyright 2015 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.
  4. #include "components/sync/protocol/entity_data.h"
  5. #include "components/sync/base/model_type.h"
  6. #include "components/sync/base/unique_position.h"
  7. #include "testing/gtest/include/gtest/gtest.h"
  8. namespace syncer {
  9. class EntityDataTest : public testing::Test {
  10. protected:
  11. EntityDataTest() = default;
  12. ~EntityDataTest() override = default;
  13. };
  14. TEST_F(EntityDataTest, IsDeleted) {
  15. EntityData data;
  16. EXPECT_TRUE(data.is_deleted());
  17. AddDefaultFieldValue(BOOKMARKS, &data.specifics);
  18. EXPECT_FALSE(data.is_deleted());
  19. }
  20. } // namespace syncer