chromium/ios/chrome/test/providers/mini_map/test_mini_map.h

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

#ifndef IOS_CHROME_TEST_PROVIDERS_MINI_MAP_TEST_MINI_MAP_H_
#define IOS_CHROME_TEST_PROVIDERS_MINI_MAP_TEST_MINI_MAP_H_

#import "ios/public/provider/chrome/browser/mini_map/mini_map_api.h"

// A protocol to replace the Mini Map providers in tests.
@protocol MiniMapControllerFactory

- (id<MiniMapController>)
    createMiniMapControllerForString:(NSString*)address
                          completion:(MiniMapControllerCompletion)completion;

@end

namespace ios {
namespace provider {
namespace test {

// Sets the global factory for the tests.
// Resets it if `factory` is nil.
void SetMiniMapControllerFactory(id<MiniMapControllerFactory> factory);

}  // namespace test
}  // namespace provider
}  // namespace ios

#endif  // IOS_CHROME_TEST_PROVIDERS_MINI_MAP_TEST_MINI_MAP_H_