// Copyright 2011 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifdef UNSAFE_BUFFERS_BUILD // TODO(crbug.com/40285824): Remove this and convert code to safer constructs. #pragma allow_unsafe_buffers #endif #include <stddef.h> #include "base/strings/utf_string_conversions.h" #include "components/history/core/browser/history_types.h" #include "testing/gtest/include/gtest/gtest.h" namespace history { namespace { // Validates the consistency of the given history result. We just make sure // that the URL rows match the indices structure. The unit tests themselves // test the index structure to verify things are in the right order, so we // don't need to. void CheckHistoryResultConsistency(const QueryResults& result) { … } const char kURL1[] = …; const char kURL2[] = …; // Adds kURL1 twice and kURL2 once. void AddSimpleData(QueryResults* results) { … } } // namespace // Tests insertion and deletion by range. TEST(HistoryQueryResult, DeleteRange) { … } // Tests insertion and deletion by URL. TEST(HistoryQueryResult, ResultDeleteURL) { … } // Tests time ranges. TEST(HistoryTypes, DeletionTimeRange) { … } } // namespace history