#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 { … };
}
class DirectoryListerTest : public PlatformTest, public WithTaskEnvironment { … };
TEST_F(DirectoryListerTest, BigDirTest) { … }
TEST_F(DirectoryListerTest, BigDirRecursiveTest) { … }
TEST_F(DirectoryListerTest, EmptyDirTest) { … }
TEST_F(DirectoryListerTest, BasicCancelTest) { … }
TEST_F(DirectoryListerTest, CancelOnListFileTest) { … }
TEST_F(DirectoryListerTest, CancelOnListDoneTest) { … }
TEST_F(DirectoryListerTest, CancelOnLastElementTest) { … }
TEST_F(DirectoryListerTest, NoSuchDirTest) { … }
}