chromium/net/base/directory_lister_unittest.cc

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

#include <list>
#include <utility>
#include <vector>

#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/i18n/file_util_icu.h"
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/strings/stringprintf.h"
#include "net/base/directory_lister.h"
#include "net/base/net_errors.h"
#include "net/test/gtest_util.h"
#include "net/test/test_with_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"

IsError;
IsOk;

namespace net {

namespace {

const int kMaxDepth =;
const int kBranchingFactor =;
const int kFilesPerDirectory =;

class ListerDelegate : public DirectoryLister::DirectoryListerDelegate {};

}  // namespace

class DirectoryListerTest : public PlatformTest, public WithTaskEnvironment {};

TEST_F(DirectoryListerTest, BigDirTest) {}

TEST_F(DirectoryListerTest, BigDirRecursiveTest) {}

TEST_F(DirectoryListerTest, EmptyDirTest) {}

// This doesn't really test much, except make sure calling cancel before any
// callbacks are invoked doesn't crash.  Can't wait for all tasks running on a
// worker pool to complete, unfortunately.
// TODO(mmenke):  See if there's a way to make this fail more reliably on
// regression.
TEST_F(DirectoryListerTest, BasicCancelTest) {}

TEST_F(DirectoryListerTest, CancelOnListFileTest) {}

TEST_F(DirectoryListerTest, CancelOnListDoneTest) {}

TEST_F(DirectoryListerTest, CancelOnLastElementTest) {}

TEST_F(DirectoryListerTest, NoSuchDirTest) {}

}  // namespace net