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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_impl_unittest.cc

Issue 2810023002: sync_backend_host_impl_unittest.cc: Remove dead code. (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/sync/driver/glue/sync_backend_host_impl.h" 5 #include "components/sync/driver/glue/sync_backend_host_impl.h"
6 6
7 #include <cstddef> 7 #include <cstddef>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 using ::testing::StrictMock; 52 using ::testing::StrictMock;
53 using ::testing::_; 53 using ::testing::_;
54 54
55 namespace syncer { 55 namespace syncer {
56 56
57 namespace { 57 namespace {
58 58
59 static const base::FilePath::CharType kTestSyncDir[] = 59 static const base::FilePath::CharType kTestSyncDir[] =
60 FILE_PATH_LITERAL("sync-test"); 60 FILE_PATH_LITERAL("sync-test");
61 61
62 ACTION_P(Signal, event) {
63 event->Signal();
64 }
65
66 void EmptyNetworkTimeUpdate(const base::Time&, 62 void EmptyNetworkTimeUpdate(const base::Time&,
67 const base::TimeDelta&, 63 const base::TimeDelta&,
68 const base::TimeDelta&) {} 64 const base::TimeDelta&) {}
69 65
70 class TestSyncEngineHost : public SyncEngineHostStub { 66 class TestSyncEngineHost : public SyncEngineHostStub {
71 public: 67 public:
72 explicit TestSyncEngineHost( 68 explicit TestSyncEngineHost(
73 base::Callback<void(ModelTypeSet)> set_engine_types) 69 base::Callback<void(ModelTypeSet)> set_engine_types)
74 : set_engine_types_(set_engine_types) {} 70 : set_engine_types_(set_engine_types) {}
75 71
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 backend_->StopSyncingForShutdown(); 816 backend_->StopSyncingForShutdown();
821 // Verify that call to DeactivateNonBlockingDataType doesn't assert. 817 // Verify that call to DeactivateNonBlockingDataType doesn't assert.
822 backend_->DeactivateNonBlockingDataType(AUTOFILL); 818 backend_->DeactivateNonBlockingDataType(AUTOFILL);
823 backend_->Shutdown(STOP_SYNC); 819 backend_->Shutdown(STOP_SYNC);
824 backend_.reset(); 820 backend_.reset();
825 } 821 }
826 822
827 } // namespace 823 } // namespace
828 824
829 } // namespace syncer 825 } // namespace syncer
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698