#include "components/assist_ranker/ranker_model.h"
#include <memory>
#include "base/time/time.h"
#include "components/assist_ranker/proto/ranker_model.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
RankerModel;
const char kModelURL[] = …;
int64_t InSeconds(const base::Time t) { … }
std::unique_ptr<RankerModel> NewModel(const std::string& model_url,
base::Time last_modified,
base::TimeDelta cache_duration) { … }
}
TEST(RankerModelTest, Serialization) { … }
TEST(RankerModelTest, IsExpired) { … }