fake_machine_learning_client.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // Copyright 2018 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.
  4. #ifndef CHROMEOS_DBUS_MACHINE_LEARNING_FAKE_MACHINE_LEARNING_CLIENT_H_
  5. #define CHROMEOS_DBUS_MACHINE_LEARNING_FAKE_MACHINE_LEARNING_CLIENT_H_
  6. #include "base/callback_forward.h"
  7. #include "base/files/scoped_file.h"
  8. #include "chromeos/dbus/machine_learning/machine_learning_client.h"
  9. namespace chromeos {
  10. // Fake implementation of MachineLearningClient. This is currently a no-op fake.
  11. class FakeMachineLearningClient : public MachineLearningClient {
  12. public:
  13. FakeMachineLearningClient();
  14. FakeMachineLearningClient(const FakeMachineLearningClient&) = delete;
  15. FakeMachineLearningClient& operator=(const FakeMachineLearningClient&) =
  16. delete;
  17. ~FakeMachineLearningClient() override;
  18. // MachineLearningClient:
  19. void BootstrapMojoConnection(
  20. base::ScopedFD fd,
  21. base::OnceCallback<void(bool success)> result_callback) override;
  22. };
  23. } // namespace chromeos
  24. #endif // CHROMEOS_DBUS_MACHINE_LEARNING_FAKE_MACHINE_LEARNING_CLIENT_H_