chromium/v8/test/unittests/compiler-dispatcher/compiler-dispatcher-unittest.cc

// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include <sstream>

#include "include/v8-platform.h"
#include "src/api/api-inl.h"
#include "src/ast/ast-value-factory.h"
#include "src/ast/ast.h"
#include "src/ast/scopes.h"
#include "src/base/platform/condition-variable.h"
#include "src/base/platform/semaphore.h"
#include "src/codegen/compiler.h"
#include "src/compiler-dispatcher/lazy-compile-dispatcher.h"
#include "src/flags/flags.h"
#include "src/handles/handles.h"
#include "src/init/v8.h"
#include "src/objects/objects-inl.h"
#include "src/parsing/parse-info.h"
#include "src/parsing/parsing.h"
#include "src/parsing/scanner-character-streams.h"
#include "src/zone/zone-list-inl.h"
#include "test/unittests/test-helpers.h"
#include "test/unittests/test-utils.h"
#include "testing/gtest/include/gtest/gtest.h"

#ifdef DEBUG
#define DEBUG_ASSERT_EQ
#else
#define DEBUG_ASSERT_EQ
#endif

namespace v8 {
namespace internal {

class LazyCompileDispatcherTestFlags {};

SaveFlags* LazyCompileDispatcherTestFlags::save_flags_ =;

class LazyCompileDispatcherTest : public TestWithNativeContext {};

namespace {

class DeferredPostJob {};

class MockPlatform : public v8::Platform {};

}  // namespace

TEST_F(LazyCompileDispatcherTest, Construct) {}

TEST_F(LazyCompileDispatcherTest, IsEnqueued) {}

TEST_F(LazyCompileDispatcherTest, FinishNow) {}

TEST_F(LazyCompileDispatcherTest, CompileAndFinalize) {}

TEST_F(LazyCompileDispatcherTest, IdleTaskNoIdleTime) {}

TEST_F(LazyCompileDispatcherTest, IdleTaskSmallIdleTime) {}

TEST_F(LazyCompileDispatcherTest, IdleTaskException) {}

TEST_F(LazyCompileDispatcherTest, FinishNowWithWorkerTask) {}

TEST_F(LazyCompileDispatcherTest, IdleTaskMultipleJobs) {}

TEST_F(LazyCompileDispatcherTest, FinishNowException) {}

TEST_F(LazyCompileDispatcherTest, AbortJobNotStarted) {}

TEST_F(LazyCompileDispatcherTest, AbortJobAlreadyStarted) {}

TEST_F(LazyCompileDispatcherTest, CompileLazyFinishesDispatcherJob) {}

TEST_F(LazyCompileDispatcherTest, CompileLazy2FinishesDispatcherJob) {}

TEST_F(LazyCompileDispatcherTest, CompileMultipleOnBackgroundThread) {}

}  // namespace internal
}  // namespace v8