# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from telemetry.page import test_expectations

# Valid expectation conditions are:
#
# Operating systems:
#     win, xp, vista, win7, mac, leopard, snowleopard, lion, mountainlion,
#     linux, chromeos, android
#
# GPU vendors:
#     amd, arm, broadcom, hisilicon, intel, imagination, nvidia, qualcomm,
#     vivante
#
# Specific GPUs can be listed as a tuple with vendor name and device ID.
# Examples: ('nvidia', 0x1234), ('arm', 'Mali-T604')
# Device IDs must be paired with a GPU vendor.

class MemoryExpectations(test_expectations.TestExpectations):
  def SetExpectations(self):
    # Sample Usage:
    # self.Fail('Memory.CSS3D',
    #     ['mac', 'amd', ('nvidia', 0x1234)], bug=123)

    self.Fail('Memory.CSS3D', ['mac', ('nvidia', 0x0fd5)], bug=368037)

# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

from telemetry.page import test_expectations

# Valid expectation conditions are:
#
# Operating systems:
#     win, xp, vista, win7, mac, leopard, snowleopard, lion, mountainlion,
#     linux, chromeos, android
#
# GPU vendors:
#     amd, arm, broadcom, hisilicon, intel, imagination, nvidia, qualcomm,
#     vivante
#
# Specific GPUs can be listed as a tuple with vendor name and device ID.
# Examples: ('nvidia', 0x1234), ('arm', 'Mali-T604')
# Device IDs must be paired with a GPU vendor.

class MemoryExpectations(test_expectations.TestExpectations):
  def SetExpectations(self):
    # Sample Usage:
    # self.Fail('Memory.CSS3D',
    #     ['mac', 'amd', ('nvidia', 0x1234)], bug=123)

    self.Fail('Memory.CSS3D', ['mac', ('nvidia', 0x0fd5)], bug=368037)

    # TODO(vmpstr): Memory drops and increases again, and this
    # particular bot happens to catch it when its low. Remove
    # once the bug is fixed.
    self.Fail('Memory.CSS3D', ['win'], bug=373098)

Add a failure expectation to win memory.css3d test.
Add a failure expectation to win memory.css3d test.

In tile manager we seem to reach the memory limit early (with the
pending tree). However, when we activate our memory gets released
and we start filling it up again with the now active tree tiles.

The windows bot seems to catch the system at the moment when we're not
using a lot of memory, thus failing the test.

BUG=373098
R=kbr@chromium.org

Review URL: https://codereview.chromium.org/289003004

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@270962 0039d316-1c4b-4281-b951-d872f2087c98
