Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: build/android/pylib/base/test_instance.py

Issue 2101243005: Add a snapshot of flutter/engine/src/build to our sdk (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: add README.dart Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium 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
6 class TestInstance(object):
7 """A type of test.
8
9 This is expected to handle all logic that is test-type specific but
10 independent of the environment or device.
11
12 Examples include:
13 - gtests
14 - instrumentation tests
15 """
16
17 def __init__(self):
18 pass
19
20 def TestType(self):
21 raise NotImplementedError
22
23 def SetUp(self):
24 raise NotImplementedError
25
26 def TearDown(self):
27 raise NotImplementedError
28
29 def __enter__(self):
30 self.SetUp()
31 return self
32
33 def __exit__(self, _exc_type, _exc_val, _exc_tb):
34 self.TearDown()
35
OLDNEW
« no previous file with comments | « build/android/pylib/base/test_dispatcher_unittest.py ('k') | build/android/pylib/base/test_instance_factory.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698