Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
testing
test_timeout_listener.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef FLUTTER_TESTING_TEST_TIMEOUT_LISTENER_H_
6
#define FLUTTER_TESTING_TEST_TIMEOUT_LISTENER_H_
7
8
#include <memory>
9
10
#include "flutter/fml/macros.h"
11
#include "flutter/fml/task_runner.h"
12
#include "flutter/fml/thread.h"
13
#include "flutter/testing/testing.h"
14
15
namespace
flutter
{
16
namespace
testing {
17
18
class
PendingTests;
19
20
class
TestTimeoutListener
:
public
::testing::EmptyTestEventListener {
21
public
:
22
explicit
TestTimeoutListener
(
fml::TimeDelta
timeout);
23
24
~TestTimeoutListener
();
25
26
private
:
27
const
fml::TimeDelta
timeout_;
28
fml::Thread
listener_thread_;
29
fml::RefPtr<fml::TaskRunner>
listener_thread_runner_;
30
std::shared_ptr<PendingTests> pending_tests_;
31
32
// |testing::EmptyTestEventListener|
33
void
OnTestStart
(const ::testing::TestInfo&
test_info
)
override
;
34
35
// |testing::EmptyTestEventListener|
36
void
OnTestEnd
(const ::testing::TestInfo&
test_info
)
override
;
37
38
FML_DISALLOW_COPY_AND_ASSIGN
(
TestTimeoutListener
);
39
};
40
41
}
// namespace testing
42
}
// namespace flutter
43
44
#endif
// FLUTTER_TESTING_TEST_TIMEOUT_LISTENER_H_
test_info
static void test_info(skiatest::Reporter *r, Codec *codec, const SkImageInfo &info, SkCodec::Result expectedResult, const SkMD5::Digest *goodDigest)
Definition
CodecTest.cpp:106
flutter::testing::TestTimeoutListener
Definition
test_timeout_listener.h:20
flutter::testing::TestTimeoutListener::~TestTimeoutListener
~TestTimeoutListener()
Definition
test_timeout_listener.cc:80
flutter::testing::TestTimeoutListener::OnTestEnd
void OnTestEnd(const ::testing::TestInfo &test_info) override
Definition
test_timeout_listener.cc:113
flutter::testing::TestTimeoutListener::OnTestStart
void OnTestStart(const ::testing::TestInfo &test_info) override
Definition
test_timeout_listener.cc:102
fml::RefPtr
Definition
ref_ptr.h:65
fml::Thread
Definition
thread.h:20
fml::TimeDelta
Definition
time_delta.h:29
FML_DISALLOW_COPY_AND_ASSIGN
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition
macros.h:27
flutter
Definition
asset_manager.cc:10
Generated on Fri Apr 26 2024 06:14:35 for Flutter Engine by
1.9.8