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

Unified Diff: chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 years, 3 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
Index: chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc
diff --git a/chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc b/chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc
index eb1c1482577aa4203e2e8973a7bf669cd72c0ba7..231cdfd4d827d61ee9fd8f0b2eeaa4cb04588398 100644
--- a/chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc
+++ b/chrome/browser/ui/webui/sync_internals_message_handler_unittest.cc
@@ -34,7 +34,7 @@ class TestableSyncInternalsMessageHandler : public SyncInternalsMessageHandler {
class FakeExtractor : public AboutSyncDataExtractor {
public:
std::unique_ptr<base::DictionaryValue> ConstructAboutInformation(
- sync_driver::SyncService* service,
+ syncer::SyncService* service,
SigninManagerBase* signin) override {
call_count_++;
last_service_ = service;
@@ -46,12 +46,12 @@ class FakeExtractor : public AboutSyncDataExtractor {
}
int call_count() const { return call_count_; }
- sync_driver::SyncService* last_service() const { return last_service_; }
+ syncer::SyncService* last_service() const { return last_service_; }
SigninManagerBase* last_signin() const { return last_signin_; }
private:
int call_count_ = 0;
- sync_driver::SyncService* last_service_ = nullptr;
+ syncer::SyncService* last_service_ = nullptr;
SigninManagerBase* last_signin_ = nullptr;
};
@@ -75,14 +75,13 @@ class SyncInternalsMessageHandlerTest : public ::testing::Test {
const content::TestWebUI::CallData& call_data = *data_vector[0];
- EXPECT_EQ(sync_driver::sync_ui_util::kDispatchEvent,
- call_data.function_name());
+ EXPECT_EQ(syncer::sync_ui_util::kDispatchEvent, call_data.function_name());
const base::Value* arg1 = call_data.arg1();
ASSERT_TRUE(arg1);
std::string event_type;
EXPECT_TRUE(arg1->GetAsString(&event_type));
- EXPECT_EQ(sync_driver::sync_ui_util::kOnAboutInfoUpdated, event_type);
+ EXPECT_EQ(syncer::sync_ui_util::kOnAboutInfoUpdated, event_type);
const base::Value* arg2 = call_data.arg2();
ASSERT_TRUE(arg2);
« no previous file with comments | « chrome/browser/ui/webui/sync_internals_message_handler.cc ('k') | chrome/browser/ui/webui/sync_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698