chromium/extensions/browser/preload_check_group_unittest.cc

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

#include "extensions/browser/preload_check_group.h"

#include <memory>
#include <vector>

#include "content/public/test/browser_task_environment.h"
#include "extensions/browser/preload_check_test_util.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace extensions {

namespace {
PreloadCheck::Error kDummyError1 =;
PreloadCheck::Error kDummyError2 =;
PreloadCheck::Error kDummyError3 =;
}

class PreloadCheckGroupTest : public testing::Test {};

// Tests multiple succeeding checks.
TEST_F(PreloadCheckGroupTest, Succeed) {}

// Tests multiple succeeding sync and async checks.
TEST_F(PreloadCheckGroupTest, SucceedAsync) {}

// Tests failing checks.
TEST_F(PreloadCheckGroupTest, Fail) {}

// Tests failing synchronous checks with stop_on_first_error.
TEST_F(PreloadCheckGroupTest, FailFast) {}

// Tests failing asynchronous checks with stop_on_first_error.
TEST_F(PreloadCheckGroupTest, FailFastAsync) {}

// Tests we don't crash when the PreloadCheckGroup is destroyed prematurely.
TEST_F(PreloadCheckGroupTest, DestroyPreloadCheckGroup) {}

}  // namespace extensions