blob: 59c1b7c1aa016726884b17f30b397a992d48b2b9 [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_PUBLIC_TEST_CONTENT_TEST_SUITE_BASE_H_
#define CONTENT_PUBLIC_TEST_CONTENT_TEST_SUITE_BASE_H_
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "base/test/test_suite.h"
namespace content {
class ContentClient;
// A basis upon which test suites that use content can be built. This suite
// initializes bits and pieces of content; see the implementation of Initialize
// for details.
class ContentTestSuiteBase : public base::TestSuite {
public:
// Registers content's schemes. During this call, the given content_client is
// registered temporarily so that it can provide additional schemes.
static void RegisterContentSchemes(ContentClient* content_client);
protected:
ContentTestSuiteBase(int argc, char** argv);
void Initialize() override;
// Registers renderer/utility/gpu processes to run in-thread.
void RegisterInProcessThreads();
private:
DISALLOW_COPY_AND_ASSIGN(ContentTestSuiteBase);
};
} // namespace content
#endif // CONTENT_PUBLIC_TEST_CONTENT_TEST_SUITE_BASE_H_