text: // Copyright 2021 The Chromium Authors. All rights reserved.
  // Use of this source code is governed by a BSD-style license that can be
  // found in the LICENSE file.
  
  #ifndef CHROME_BROWSER_ENTERPRISE_CONNECTORS_DEVICE_TRUST_FAKE_DEVICE_TRUST_CONNECTOR_SERVICE_H_
  #define CHROME_BROWSER_ENTERPRISE_CONNECTORS_DEVICE_TRUST_FAKE_DEVICE_TRUST_CONNECTOR_SERVICE_H_
  
  #include <memory>
  
  #include "base/memory/raw_ptr.h"
  #include "base/values.h"
  #include "chrome/browser/enterprise/connectors/device_trust/device_trust_connector_service.h"
  
  namespace sync_preferences {
  class TestingPrefServiceSyncable;
  }  // namespace sync_preferences
  
  namespace enterprise_connectors {
  
  class FakeDeviceTrustConnectorService : public DeviceTrustConnectorService {
   public:
    explicit FakeDeviceTrustConnectorService(
        sync_preferences::TestingPrefServiceSyncable* profile_prefs);
    ~FakeDeviceTrustConnectorService() override;
  
    void update_policy(std::unique_ptr<base::ListValue> new_urls);
  
   private:
    raw_ptr<sync_preferences::TestingPrefServiceSyncable> test_prefs_;
  };
  
  }  // namespace enterprise_connectors
  
  #endif  // CHROME_BROWSER_ENTERPRISE_CONNECTORS_DEVICE_TRUST_FAKE_DEVICE_TRUST_CONNECTOR_SERVICE_H_
  