#include "components/performance_manager/graph/worker_node_impl.h"
#include "base/task/task_traits.h"
#include "components/performance_manager/graph/frame_node_impl.h"
#include "components/performance_manager/graph/page_node_impl.h"
#include "components/performance_manager/graph/process_node_impl.h"
#include "components/performance_manager/public/execution_context_priority/execution_context_priority.h"
#include "components/performance_manager/test_support/graph_test_harness.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
#include "url/origin.h"
namespace performance_manager {
namespace {
class WorkerNodeImplTest : public GraphTestHarness { … };
class LenientMockObserver : public WorkerNodeImpl::Observer { … };
MockObserver;
_;
ElementsAre;
InSequence;
Invoke;
InvokeWithoutArgs;
}
TEST_F(WorkerNodeImplTest, SafeDowncast) { … }
WorkerNodeImplDeathTest;
TEST_F(WorkerNodeImplDeathTest, SafeDowncast) { … }
TEST_F(WorkerNodeImplTest, ConstProperties) { … }
TEST_F(WorkerNodeImplTest, OnFinalResponseURLDetermined) { … }
TEST_F(WorkerNodeImplTest, AddWorkerNodes) { … }
TEST_F(WorkerNodeImplTest, ClientsOfServiceWorkers) { … }
TEST_F(WorkerNodeImplTest, NestedDedicatedWorkers) { … }
TEST_F(WorkerNodeImplTest, PriorityAndReason) { … }
TEST_F(WorkerNodeImplTest, ObserverWorks) { … }
TEST_F(WorkerNodeImplTest, Observer_AddWorkerNodes) { … }
TEST_F(WorkerNodeImplTest, Observer_ClientsOfServiceWorkers) { … }
TEST_F(WorkerNodeImplTest, Observer_OnFinalResponseURLDetermined) { … }
TEST_F(WorkerNodeImplTest, Observer_OnPriorityAndReasonChanged) { … }
}