blob: 6c3f79bd608a5ea84a33b28954dd034d60483592 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "pdf/test/test_client.h"
namespace chrome_pdf {
TestClient::TestClient() = default;
TestClient::~TestClient() = default;
bool TestClient::Confirm(const std::string& message) {
return false;
}
std::string TestClient::Prompt(const std::string& question,
const std::string& default_answer) {
return std::string();
}
std::string TestClient::GetURL() {
return std::string();
}
pp::URLLoader TestClient::CreateURLLoader() {
return pp::URLLoader();
}
std::vector<PDFEngine::Client::SearchStringResult> TestClient::SearchString(
const base::char16* string,
const base::char16* term,
bool case_sensitive) {
return std::vector<SearchStringResult>();
}
pp::Instance* TestClient::GetPluginInstance() {
return nullptr;
}
bool TestClient::IsPrintPreview() {
return false;
}
uint32_t TestClient::GetBackgroundColor() {
return 0;
}
float TestClient::GetToolbarHeightInScreenCoords() {
return 0;
}
} // namespace chrome_pdf