#include "components/update_client/ping_manager.h"
#include <stdint.h>
#include <initializer_list>
#include <limits>
#include <memory>
#include <optional>
#include <string>
#include <utility>
#include <vector>
#include "base/check_deref.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/json/json_reader.h"
#include "base/memory/ref_counted.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "base/version.h"
#include "components/prefs/testing_pref_service.h"
#include "components/update_client/component.h"
#include "components/update_client/net/url_loader_post_interceptor.h"
#include "components/update_client/persisted_data.h"
#include "components/update_client/protocol_definition.h"
#include "components/update_client/protocol_serializer.h"
#include "components/update_client/test_configurator.h"
#include "components/update_client/update_client.h"
#include "components/update_client/update_engine.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/re2/src/re2/re2.h"
namespace update_client {
class PingManagerTest : public testing::Test,
public testing::WithParamInterface<bool> { … };
PingManagerTest::PingManagerTest()
: … { … }
void PingManagerTest::SetUp() { … }
void PingManagerTest::TearDown() { … }
void PingManagerTest::RunThreads() { … }
void PingManagerTest::Quit() { … }
PingManager::Callback PingManagerTest::MakePingCallback() { … }
void PingManagerTest::PingSentCallback(int error, const std::string& response) { … }
scoped_refptr<UpdateContext> PingManagerTest::MakeMockUpdateContext() const { … }
INSTANTIATE_TEST_SUITE_P(…);
TEST_P(PingManagerTest, SendPing) { … }
TEST_P(PingManagerTest, RequiresEncryption) { … }
}