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

Side by Side Diff: chrome/browser/ui/webui/options/sync_setup_handler_unittest.cc

Issue 2395533003: [Sync] Move some things from driver to base. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 "chrome/browser/ui/webui/options/sync_setup_handler.h" 5 #include "chrome/browser/ui/webui/options/sync_setup_handler.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/ui/webui/signin/login_ui_service.h" 22 #include "chrome/browser/ui/webui/signin/login_ui_service.h"
23 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" 23 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
24 #include "chrome/common/chrome_switches.h" 24 #include "chrome/common/chrome_switches.h"
25 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
26 #include "chrome/test/base/scoped_testing_local_state.h" 26 #include "chrome/test/base/scoped_testing_local_state.h"
27 #include "chrome/test/base/testing_browser_process.h" 27 #include "chrome/test/base/testing_browser_process.h"
28 #include "chrome/test/base/testing_profile.h" 28 #include "chrome/test/base/testing_profile.h"
29 #include "components/prefs/pref_service.h" 29 #include "components/prefs/pref_service.h"
30 #include "components/signin/core/browser/fake_auth_status_provider.h" 30 #include "components/signin/core/browser/fake_auth_status_provider.h"
31 #include "components/signin/core/browser/signin_manager.h" 31 #include "components/signin/core/browser/signin_manager.h"
32 #include "components/sync/driver/sync_prefs.h" 32 #include "components/sync/base/sync_prefs.h"
33 #include "content/public/browser/web_ui.h" 33 #include "content/public/browser/web_ui.h"
34 #include "content/public/test/test_browser_thread.h" 34 #include "content/public/test/test_browser_thread.h"
35 #include "content/public/test/test_browser_thread_bundle.h" 35 #include "content/public/test/test_browser_thread_bundle.h"
36 #include "content/public/test/test_web_ui.h" 36 #include "content/public/test/test_web_ui.h"
37 #include "testing/gtest/include/gtest/gtest.h" 37 #include "testing/gtest/include/gtest/gtest.h"
38 #include "ui/base/layout.h" 38 #include "ui/base/layout.h"
39 39
40 using ::testing::_; 40 using ::testing::_;
41 using ::testing::Mock; 41 using ::testing::Mock;
42 using ::testing::Return; 42 using ::testing::Return;
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 EXPECT_CALL(*mock_pss_, IsEncryptEverythingAllowed()) 943 EXPECT_CALL(*mock_pss_, IsEncryptEverythingAllowed())
944 .WillRepeatedly(Return(false)); 944 .WillRepeatedly(Return(false));
945 EXPECT_CALL(*mock_pss_, EnableEncryptEverything()).Times(0); 945 EXPECT_CALL(*mock_pss_, EnableEncryptEverything()).Times(0);
946 EXPECT_CALL(*mock_pss_, OnUserChoseDatatypes(true, _)); 946 EXPECT_CALL(*mock_pss_, OnUserChoseDatatypes(true, _));
947 handler_->HandleConfigure(&list_args); 947 handler_->HandleConfigure(&list_args);
948 948
949 // Ensure that we navigated to the "done" state since we don't need a 949 // Ensure that we navigated to the "done" state since we don't need a
950 // passphrase. 950 // passphrase.
951 ExpectDone(); 951 ExpectDone();
952 } 952 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/sync_setup_handler.cc ('k') | chrome/browser/ui/webui/settings/people_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698