chromium/ios/chrome/browser/ui/omnibox/popup/omnibox_popup_mediator+Testing.h

// Copyright 2022 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_BROWSER_UI_OMNIBOX_POPUP_OMNIBOX_POPUP_MEDIATOR_TESTING_H_
#define IOS_CHROME_BROWSER_UI_OMNIBOX_POPUP_OMNIBOX_POPUP_MEDIATOR_TESTING_H_

// Testing category exposing private methods of OmniboxPopupMediator for tests.
@interface OmniboxPopupMediator (Testing)

/// Groups `currentResult` suggestions from index `begin` (included) to `end`
/// (excluded) with `GroupSuggestionsBySearchVsURL`.
- (void)groupCurrentSuggestionsFrom:(NSUInteger)begin to:(NSUInteger)end;

/// Returns `AutocompleteResult` from `autocompleteController`.
- (const AutocompleteResult&)autocompleteResult;

@end

#endif  // IOS_CHROME_BROWSER_UI_OMNIBOX_POPUP_OMNIBOX_POPUP_MEDIATOR_TESTING_H_