1#
2# Copyright 2012, The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8#     http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16class CoverageTarget:
17  """ Represents a code coverage target definition"""
18
19  def __init__(self):
20    self._name = None
21    self._type = None
22    self._build_path = None
23    self._paths = []
24
25  def GetName(self):
26    return self._name
27
28  def SetName(self, name):
29    self._name = name
30
31  def GetPaths(self):
32    return self._paths
33
34  def AddPath(self, path):
35    self._paths.append(path)
36
37  def GetType(self):
38    return self._type
39
40  def SetType(self, buildtype):
41    self._type = buildtype
42
43  def GetBuildPath(self):
44    return self._build_path
45
46  def SetBuildPath(self, build_path):
47    self._build_path = build_path
48
49