chromium/remoting/client/notification/gstatic_json_fetcher_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "remoting/client/notification/gstatic_json_fetcher.h"

#include <memory>
#include <string>

#include "base/run_loop.h"
#include "base/task/single_thread_task_runner.h"
#include "base/test/gmock_callback_support.h"
#include "base/test/mock_callback.h"
#include "base/test/task_environment.h"
#include "base/test/values_test_util.h"
#include "base/values.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.h"
#include "net/url_request/url_request_error_job.h"
#include "net/url_request/url_request_filter.h"
#include "net/url_request/url_request_test_job.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace remoting {

namespace {

Return;

constexpr char kTestPath1[] =;
constexpr char kTestPath2[] =;
constexpr char kTestJsonData1[] =;
constexpr char kTestJsonData2[] =;

MATCHER(NoJsonData, "") {}

MATCHER(IsJsonData1, "") {}

MATCHER(IsJsonData2, "") {}

class TestURLRequestInterceptor : public net::URLRequestInterceptor {};

// Creates URLRequestJobs that fail at the specified phase.
class TestFailingURLRequestInterceptor : public net::URLRequestInterceptor {};

}  // namespace

class GstaticJsonFetcherTest : public testing::Test {};

TEST_F(GstaticJsonFetcherTest, FetchJsonFileSuccess) {}

TEST_F(GstaticJsonFetcherTest, FetchTwoJsonFilesInParallel) {}

TEST_F(GstaticJsonFetcherTest, FetchJsonFileStatusNotOk) {}

TEST_F(GstaticJsonFetcherTest, FetchJsonFileNetworkError) {}

TEST_F(GstaticJsonFetcherTest, FetchJsonFileMalformed) {}

}  // namespace remoting