chromium/components/update_client/crx_cache_unittest.cc

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

#include "components/update_client/crx_cache.h"

#include <string>

#include "base/base_paths.h"
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/memory/scoped_refptr.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "components/update_client/test_utils.h"
#include "components/update_client/update_client_errors.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace update_client {
namespace {

base::FilePath BuildCrxFilePathForTest(const base::FilePath& dir_path,
                                       const std::string& id,
                                       const std::string& fp) {}

}  // namespace

class CrxCacheTest : public testing::Test {};

TEST_F(CrxCacheTest, CheckGetSucceeds) {}

TEST_F(CrxCacheTest, CheckGetWithMissingFileFails) {}

TEST_F(CrxCacheTest, CheckPutWithExistingEmptyCrxCachePathSucceeds) {}

TEST_F(CrxCacheTest, CheckPutWithNonExistentCrxCacheDirSucceeds) {}

TEST_F(CrxCacheTest, CheckPutPreexistingCrxReplacementSucceeds) {}

TEST_F(CrxCacheTest, CheckPutCachedCrxSucceeds) {}

}  // namespace update_client