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

Side by Side Diff: chrome/browser/sync/sync_ui_util_unittest.cc

Issue 2345843003: [Sync] Merge //components/browser_sync into one directory. (Closed)
Patch Set: Address comment + 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 6
7 #include <set> 7 #include <set>
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/signin/account_tracker_service_factory.h" 12 #include "chrome/browser/signin/account_tracker_service_factory.h"
13 #include "chrome/browser/signin/chrome_signin_client_factory.h" 13 #include "chrome/browser/signin/chrome_signin_client_factory.h"
14 #include "chrome/browser/signin/signin_error_controller_factory.h" 14 #include "chrome/browser/signin/signin_error_controller_factory.h"
15 #include "chrome/browser/signin/signin_manager_factory.h" 15 #include "chrome/browser/signin/signin_manager_factory.h"
16 #include "chrome/browser/sync/profile_sync_test_util.h" 16 #include "chrome/browser/sync/profile_sync_test_util.h"
17 #include "chrome/browser/sync/sync_ui_util.h" 17 #include "chrome/browser/sync/sync_ui_util.h"
18 #include "chrome/grit/generated_resources.h" 18 #include "chrome/grit/generated_resources.h"
19 #include "chrome/test/base/testing_profile.h" 19 #include "chrome/test/base/testing_profile.h"
20 #include "components/browser_sync/browser/profile_sync_service_mock.h" 20 #include "components/browser_sync/profile_sync_service_mock.h"
21 #include "components/signin/core/browser/fake_auth_status_provider.h" 21 #include "components/signin/core/browser/fake_auth_status_provider.h"
22 #include "components/signin/core/browser/fake_signin_manager.h" 22 #include "components/signin/core/browser/fake_signin_manager.h"
23 #include "components/signin/core/browser/signin_manager.h" 23 #include "components/signin/core/browser/signin_manager.h"
24 #include "content/public/test/test_browser_thread.h" 24 #include "content/public/test/test_browser_thread.h"
25 #include "content/public/test/test_browser_thread_bundle.h" 25 #include "content/public/test/test_browser_thread_bundle.h"
26 #include "testing/gmock/include/gmock/gmock-actions.h" 26 #include "testing/gmock/include/gmock/gmock-actions.h"
27 #include "testing/gmock/include/gmock/gmock.h" 27 #include "testing/gmock/include/gmock/gmock.h"
28 #include "testing/gtest/include/gtest/gtest.h" 28 #include "testing/gtest/include/gtest/gtest.h"
29 #include "ui/base/l10n/l10n_util.h" 29 #include "ui/base/l10n/l10n_util.h"
30 30
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // from previous one. 428 // from previous one.
429 status.sync_protocol_error.action = syncer::UPGRADE_CLIENT; 429 status.sync_protocol_error.action = syncer::UPGRADE_CLIENT;
430 EXPECT_CALL(service, QueryDetailedSyncStatus(_)) 430 EXPECT_CALL(service, QueryDetailedSyncStatus(_))
431 .WillOnce(DoAll(SetArgPointee<0>(status), Return(true))); 431 .WillOnce(DoAll(SetArgPointee<0>(status), Return(true)));
432 base::string16 upgrade_client_status_label; 432 base::string16 upgrade_client_status_label;
433 sync_ui_util::GetStatusLabels(profile.get(), &service, *signin, 433 sync_ui_util::GetStatusLabels(profile.get(), &service, *signin,
434 sync_ui_util::PLAIN_TEXT, 434 sync_ui_util::PLAIN_TEXT,
435 &upgrade_client_status_label, &link_label); 435 &upgrade_client_status_label, &link_label);
436 EXPECT_NE(unrecoverable_error_status_label, upgrade_client_status_label); 436 EXPECT_NE(unrecoverable_error_status_label, upgrade_client_status_label);
437 } 437 }
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/sync/test/integration/autofill_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698