#include "components/omnibox/browser/calculator_provider.h"
#include <memory>
#include <string>
#include <vector>
#include "base/memory/scoped_refptr.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/timer/elapsed_timer.h"
#include "components/omnibox/browser/autocomplete_input.h"
#include "components/omnibox/browser/autocomplete_match.h"
#include "components/omnibox/browser/autocomplete_match_type.h"
#include "components/omnibox/browser/fake_autocomplete_provider_client.h"
#include "components/omnibox/browser/omnibox_feature_configs.h"
#include "components/omnibox/browser/provider_state_service.h"
#include "components/omnibox/browser/search_provider.h"
#include "components/omnibox/browser/test_scheme_classifier.h"
namespace {
class FakeSearchProvider : public SearchProvider { … };
struct SearchMatch { … };
}
class CalculatorProviderTest : public testing::Test,
public AutocompleteProviderListener { … };
TEST_F(CalculatorProviderTest, SkipSyncInputs) { … }
TEST_F(CalculatorProviderTest, RunSynclyForSyncSearchProvider) { … }
TEST_F(CalculatorProviderTest, RunAsynclyForAsyncSearchProvider) { … }
TEST_F(CalculatorProviderTest, CachePreviousCalcSuggestions) { … }
TEST_F(CalculatorProviderTest, MaxCacheSize) { … }
TEST_F(CalculatorProviderTest, DedupeAndCoalesceIntermediateInputs) { … }
TEST_F(CalculatorProviderTest, ShowCalcSuggestionsForCorrectInputs) { … }