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

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

Issue 2354613002: [Sync] Fix namespaces for the browser_sync component. (Closed)
Patch Set: Address comments. 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 "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 24 matching lines...) Expand all
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;
43 using ::testing::ReturnRef; 43 using ::testing::ReturnRef;
44 using ::testing::Values; 44 using ::testing::Values;
45 using browser_sync::ProfileSyncService;
46 using browser_sync::ProfileSyncServiceMock;
45 47
46 typedef GoogleServiceAuthError AuthError; 48 typedef GoogleServiceAuthError AuthError;
47 49
48 namespace { 50 namespace {
49 51
50 MATCHER_P(ModelTypeSetMatches, value, "") { 52 MATCHER_P(ModelTypeSetMatches, value, "") {
51 return arg == value; 53 return arg == value;
52 } 54 }
53 55
54 const char kTestUser[] = "chrome.p13n.test@gmail.com"; 56 const char kTestUser[] = "chrome.p13n.test@gmail.com";
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 EXPECT_CALL(*mock_pss_, IsEncryptEverythingAllowed()) 943 EXPECT_CALL(*mock_pss_, IsEncryptEverythingAllowed())
942 .WillRepeatedly(Return(false)); 944 .WillRepeatedly(Return(false));
943 EXPECT_CALL(*mock_pss_, EnableEncryptEverything()).Times(0); 945 EXPECT_CALL(*mock_pss_, EnableEncryptEverything()).Times(0);
944 EXPECT_CALL(*mock_pss_, OnUserChoseDatatypes(true, _)); 946 EXPECT_CALL(*mock_pss_, OnUserChoseDatatypes(true, _));
945 handler_->HandleConfigure(&list_args); 947 handler_->HandleConfigure(&list_args);
946 948
947 // 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
948 // passphrase. 950 // passphrase.
949 ExpectDone(); 951 ExpectDone();
950 } 952 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/sync_setup_handler.cc ('k') | chrome/browser/ui/webui/settings/people_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698