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

Unified Diff: components/sync/api/sync_error_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 | « components/sync/api/sync_error_factory_mock.cc ('k') | components/sync/api/sync_merge_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/api/sync_error_unittest.cc
diff --git a/sync/api/sync_error_unittest.cc b/components/sync/api/sync_error_unittest.cc
similarity index 96%
rename from sync/api/sync_error_unittest.cc
rename to components/sync/api/sync_error_unittest.cc
index a52461c2aa613d85ae74a4ddc8ee1e5a6ca28403..d36bbae383d72386f8953df911cc9702d47dff04 100644
--- a/sync/api/sync_error_unittest.cc
+++ b/components/sync/api/sync_error_unittest.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/api/sync_error.h"
+#include "components/sync/api/sync_error.h"
#include <string>
@@ -43,7 +43,7 @@ TEST_F(SyncErrorTest, LowSeverity) {
ASSERT_TRUE(error.IsSet());
EXPECT_EQ(location.line_number(), error.location().line_number());
EXPECT_EQ("disabled due to configuration constraints: ",
- error.GetMessagePrefix());
+ error.GetMessagePrefix());
EXPECT_EQ(msg, error.message());
EXPECT_EQ(type, error.model_type());
EXPECT_EQ(SyncError::SYNC_ERROR_SEVERITY_INFO, error.GetSeverity());
@@ -133,7 +133,7 @@ TEST_F(SyncErrorTest, ToString) {
std::string msg = "test";
ModelType type = PREFERENCES;
std::string expected = std::string(ModelTypeToString(type)) +
- " datatype error was encountered: " + msg;
+ " datatype error was encountered: " + msg;
LOG(INFO) << "Expect " << expected;
SyncError error(location, SyncError::DATATYPE_ERROR, msg, type);
EXPECT_TRUE(error.IsSet());
« no previous file with comments | « components/sync/api/sync_error_factory_mock.cc ('k') | components/sync/api/sync_merge_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698