// services/network/public/mojom/cache_encryption_provider.mojom-test-utils.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef SERVICES_NETWORK_PUBLIC_MOJOM_CACHE_ENCRYPTION_PROVIDER_MOJOM_TEST_UTILS_H_
#define SERVICES_NETWORK_PUBLIC_MOJOM_CACHE_ENCRYPTION_PROVIDER_MOJOM_TEST_UTILS_H_

#include "services/network/public/mojom/cache_encryption_provider.mojom.h"


namespace network::mojom {


class  CacheEncryptionProviderInterceptorForTesting : public CacheEncryptionProvider {
  virtual CacheEncryptionProvider* GetForwardingInterface() = 0;
  void GetEncryptedCacheEncryptionKey(GetEncryptedCacheEncryptionKeyCallback callback) override;
};
class  CacheEncryptionProviderAsyncWaiter {
 public:
  explicit CacheEncryptionProviderAsyncWaiter(CacheEncryptionProvider* proxy);

  CacheEncryptionProviderAsyncWaiter(const CacheEncryptionProviderAsyncWaiter&) = delete;
  CacheEncryptionProviderAsyncWaiter& operator=(const CacheEncryptionProviderAsyncWaiter&) = delete;

  ~CacheEncryptionProviderAsyncWaiter();
  void GetEncryptedCacheEncryptionKey(
      std::vector<uint8_t>* out_encrypted_key, ::scoped_refptr<::os_crypt_async::Encryptor>* out_encryptor);
  

 private:
  CacheEncryptionProvider* const proxy_;
};




}  // network::mojom

#endif  // SERVICES_NETWORK_PUBLIC_MOJOM_CACHE_ENCRYPTION_PROVIDER_MOJOM_TEST_UTILS_H_