[sql] Remove _HAS_EXCEPTIONS=0 from build info.
[chromium-blink-merge.git] / sync / internal_api / public / test / null_sync_context_proxy.h
blobc6546193b385cc5960bb5a1e70cacb910ad820fc
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_
8 #include "base/memory/weak_ptr.h"
9 #include "sync/internal_api/public/non_blocking_sync_common.h"
10 #include "sync/internal_api/public/sync_context_proxy.h"
12 namespace syncer {
13 class ModelTypeSyncProxyImpl;
16 namespace syncer_v2 {
17 // A non-functional implementation of SyncContextProxy.
19 // It supports Clone(), but not much else. Useful for testing.
20 class NullSyncContextProxy : public SyncContextProxy {
21 public:
22 NullSyncContextProxy();
23 ~NullSyncContextProxy() override;
25 void ConnectTypeToSync(syncer::ModelType type,
26 const DataTypeState& data_type_state,
27 const UpdateResponseDataList& saved_pending_updates,
28 const base::WeakPtr<syncer::ModelTypeSyncProxyImpl>&
29 type_sync_proxy) override;
30 void Disconnect(syncer::ModelType type) override;
31 scoped_ptr<SyncContextProxy> Clone() const override;
34 } // namespace syncer
36 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_