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

Side by Side Diff: components/browsing_data/core/history_notice_utils_unittest.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/browsing_data/core/history_notice_utils.h" 5 #include "components/browsing_data/core/history_notice_utils.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 11 #include "base/run_loop.h"
12 #include "components/history/core/test/fake_web_history_service.h" 12 #include "components/history/core/test/fake_web_history_service.h"
13 #include "components/signin/core/browser/account_tracker_service.h" 13 #include "components/signin/core/browser/account_tracker_service.h"
14 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" 14 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
15 #include "components/signin/core/browser/fake_signin_manager.h" 15 #include "components/signin/core/browser/fake_signin_manager.h"
16 #include "components/signin/core/browser/test_signin_client.h" 16 #include "components/signin/core/browser/test_signin_client.h"
17 #include "components/sync/base/model_type.h" 17 #include "components/sync/base/model_type.h"
18 #include "components/sync/driver/fake_sync_service.h" 18 #include "components/sync/driver/fake_sync_service.h"
19 #include "components/version_info/version_info.h" 19 #include "components/version_info/version_info.h"
20 #include "net/http/http_status_code.h" 20 #include "net/http/http_status_code.h"
21 #include "net/url_request/url_request_test_util.h" 21 #include "net/url_request/url_request_test_util.h"
22 #include "testing/gtest/include/gtest/gtest.h" 22 #include "testing/gtest/include/gtest/gtest.h"
23 23
24 namespace browsing_data { 24 namespace browsing_data {
25 25
26 namespace { 26 namespace {
27 27
28 class TestSyncService : public sync_driver::FakeSyncService { 28 class TestSyncService : public syncer::FakeSyncService {
29 public: 29 public:
30 // Getters (FakeSyncService implementation). --------------------------------- 30 // Getters (FakeSyncService implementation). ---------------------------------
31 bool IsSyncActive() const override { 31 bool IsSyncActive() const override {
32 return sync_active_; 32 return sync_active_;
33 } 33 }
34 34
35 syncer::ModelTypeSet GetActiveDataTypes() const override { 35 syncer::ModelTypeSet GetActiveDataTypes() const override {
36 return active_data_types_; 36 return active_data_types_;
37 } 37 }
38 38
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 // Invalid responses from the web history are interpreted as false. 178 // Invalid responses from the web history are interpreted as false.
179 history_service()->SetWebAndAppActivityEnabled(true); 179 history_service()->SetWebAndAppActivityEnabled(true);
180 history_service()->SetOtherFormsOfBrowsingHistoryPresent(true); 180 history_service()->SetOtherFormsOfBrowsingHistoryPresent(true);
181 history_service()->SetupFakeResponse(true, net::HTTP_INTERNAL_SERVER_ERROR); 181 history_service()->SetupFakeResponse(true, net::HTTP_INTERNAL_SERVER_ERROR);
182 ExpectShouldPopupDialogAboutOtherFormsOfBrowsingHistoryWithResult(false); 182 ExpectShouldPopupDialogAboutOtherFormsOfBrowsingHistoryWithResult(false);
183 history_service()->SetupFakeResponse(false, net::HTTP_OK); 183 history_service()->SetupFakeResponse(false, net::HTTP_OK);
184 ExpectShouldPopupDialogAboutOtherFormsOfBrowsingHistoryWithResult(false); 184 ExpectShouldPopupDialogAboutOtherFormsOfBrowsingHistoryWithResult(false);
185 } 185 }
186 186
187 } // namespace browsing_data 187 } // namespace browsing_data
OLDNEW
« no previous file with comments | « components/browsing_data/core/history_notice_utils.cc ('k') | components/gcm_driver/gcm_desktop_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698