1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
fuchsia_web / webengine / browser / frame_impl_browser_test_base.h [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FUCHSIA_WEB_WEBENGINE_BROWSER_FRAME_IMPL_BROWSER_TEST_BASE_H_
#define FUCHSIA_WEB_WEBENGINE_BROWSER_FRAME_IMPL_BROWSER_TEST_BASE_H_
#include "fuchsia_web/webengine/test/web_engine_browser_test.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
// Base test class used for testing FrameImpl and the WebEngine Frame FIDL
// service
class FrameImplTestBase : public WebEngineBrowserTest {
public:
FrameImplTestBase(const FrameImplTestBase&) = delete;
FrameImplTestBase& operator=(const FrameImplTestBase&) = delete;
protected:
FrameImplTestBase();
~FrameImplTestBase() override = default;
};
// Base test class used for testing FrameImpl and the WebEngine Frame FIDL
// service when loading URLs from a test server.
class FrameImplTestBaseWithServer : public FrameImplTestBase {
public:
FrameImplTestBaseWithServer(const FrameImplTestBaseWithServer&) = delete;
FrameImplTestBaseWithServer& operator=(const FrameImplTestBaseWithServer&) =
delete;
void SetUpOnMainThread() override;
protected:
FrameImplTestBaseWithServer();
~FrameImplTestBaseWithServer() override = default;
net::test_server::EmbeddedTestServerHandle test_server_handle_;
};
#endif // FUCHSIA_WEB_WEBENGINE_BROWSER_FRAME_IMPL_BROWSER_TEST_BASE_H_