Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(585)

Unified Diff: sync/api/sync_merge_result_unittest.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/api/sync_merge_result.cc ('k') | sync/api/syncable_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/api/sync_merge_result_unittest.cc
diff --git a/sync/api/sync_merge_result_unittest.cc b/sync/api/sync_merge_result_unittest.cc
deleted file mode 100644
index b3f692764cf13e838614eff37f92e1961c27afbd..0000000000000000000000000000000000000000
--- a/sync/api/sync_merge_result_unittest.cc
+++ /dev/null
@@ -1,77 +0,0 @@
-// Copyright (c) 2012 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/sync_merge_result.h"
-
-#include "base/location.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace syncer {
-
-namespace {
-
-typedef testing::Test SyncMergeResultTest;
-
-TEST_F(SyncMergeResultTest, Unset) {
- SyncMergeResult merge_result(BOOKMARKS);
- EXPECT_FALSE(merge_result.error().IsSet());
- EXPECT_EQ(0, merge_result.num_items_before_association());
- EXPECT_EQ(0, merge_result.num_items_after_association());
- EXPECT_EQ(0, merge_result.num_items_added());
- EXPECT_EQ(0, merge_result.num_items_deleted());
- EXPECT_EQ(0, merge_result.num_items_modified());
-}
-
-TEST_F(SyncMergeResultTest, SetError) {
- SyncError error(FROM_HERE, SyncError::DATATYPE_ERROR, "message", BOOKMARKS);
- SyncMergeResult merge_result(BOOKMARKS);
-
- merge_result.set_error(error);
- EXPECT_TRUE(merge_result.error().IsSet());
- EXPECT_EQ(BOOKMARKS, merge_result.model_type());
-}
-
-TEST_F(SyncMergeResultTest, SetNumItemsBeforeAssociation) {
- SyncMergeResult merge_result(BOOKMARKS);
- EXPECT_EQ(0, merge_result.num_items_before_association());
-
- merge_result.set_num_items_before_association(10);
- EXPECT_EQ(10, merge_result.num_items_before_association());
-}
-
-TEST_F(SyncMergeResultTest, SetNumItemsAfterAssociation) {
- SyncMergeResult merge_result(BOOKMARKS);
- EXPECT_EQ(0, merge_result.num_items_after_association());
-
- merge_result.set_num_items_after_association(10);
- EXPECT_EQ(10, merge_result.num_items_after_association());
-}
-
-TEST_F(SyncMergeResultTest, SetNumItemsAdded) {
- SyncMergeResult merge_result(BOOKMARKS);
- EXPECT_EQ(0, merge_result.num_items_added());
-
- merge_result.set_num_items_added(10);
- EXPECT_EQ(10, merge_result.num_items_added());
-}
-
-TEST_F(SyncMergeResultTest, SetNumItemsDeleted) {
- SyncMergeResult merge_result(BOOKMARKS);
- EXPECT_EQ(0, merge_result.num_items_deleted());
-
- merge_result.set_num_items_deleted(10);
- EXPECT_EQ(10, merge_result.num_items_deleted());
-}
-
-TEST_F(SyncMergeResultTest, SetNumItemsModified) {
- SyncMergeResult merge_result(BOOKMARKS);
- EXPECT_EQ(0, merge_result.num_items_modified());
-
- merge_result.set_num_items_modified(10);
- EXPECT_EQ(10, merge_result.num_items_modified());
-}
-
-} // namespace
-
-} // namespace syncer
« no previous file with comments | « sync/api/sync_merge_result.cc ('k') | sync/api/syncable_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698