#include "services/webnn/webnn_graph_builder_impl.h"
#include <memory>
#include "base/functional/callback_helpers.h"
#include "base/memory/weak_ptr.h"
#include "base/notimplemented.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "services/webnn/error.h"
#include "services/webnn/public/mojom/features.mojom-features.h"
#include "services/webnn/webnn_context_impl.h"
#include "services/webnn/webnn_context_provider_impl.h"
#include "services/webnn/webnn_graph_impl.h"
#include "services/webnn/webnn_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace webnn {
namespace {
mojom::GraphInfoPtr BuildSimpleGraphInfo() { … }
class FakeWebNNGraphImpl final : public WebNNGraphImpl { … };
class FakeWebNNContextImpl final : public WebNNContextImpl { … };
class FakeWebNNBackend : public WebNNContextProviderImpl::BackendForTesting { … };
}
class WebNNGraphBuilderImplTest : public testing::Test { … };
TEST_F(WebNNGraphBuilderImplTest, CreateGraph) { … }
TEST_F(WebNNGraphBuilderImplTest, CreateGraphTwice) { … }
}