| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Run the first page of one benchmark for every module. | 5 """Run the first page of one benchmark for every module. |
| 6 | 6 |
| 7 Only benchmarks that have a composable measurement are included. | 7 Only benchmarks that have a composable measurement are included. |
| 8 Ideally this test would be comprehensive, however, running one page | 8 Ideally this test would be comprehensive, however, running one page |
| 9 of every benchmark would run impractically long. | 9 of every benchmark would run impractically long. |
| 10 """ | 10 """ |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 | 143 |
| 144 # Handle the case where the benchmark is Enabled/Disabled everywhere. | 144 # Handle the case where the benchmark is Enabled/Disabled everywhere. |
| 145 if (getattr(method, attribute, None) == [] or | 145 if (getattr(method, attribute, None) == [] or |
| 146 getattr(benchmark, attribute, None) == []): | 146 getattr(benchmark, attribute, None) == []): |
| 147 setattr(method, attribute, []) | 147 setattr(method, attribute, []) |
| 148 | 148 |
| 149 # Disable some tests on android platform only. | 149 # Disable some tests on android platform only. |
| 150 if sys.modules[benchmark.__module__] in _ANDROID_BLACK_LIST_MODULES: | 150 if sys.modules[benchmark.__module__] in _ANDROID_BLACK_LIST_MODULES: |
| 151 method._disabled_strings.append('android') | 151 method._disabled_strings.append('android') |
| 152 | 152 |
| 153 # TODO(bashi): Remove once crrev.com/1266833004 is landed. | |
| 154 if benchmark.Name() == 'memory.blink_memory_mobile': | |
| 155 method._disabled_strings.append('android') | |
| 156 | |
| 157 setattr(BenchmarkSmokeTest, benchmark.Name(), method) | 153 setattr(BenchmarkSmokeTest, benchmark.Name(), method) |
| 158 | 154 |
| 159 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) | 155 suite.addTest(BenchmarkSmokeTest(benchmark.Name())) |
| 160 | 156 |
| 161 return suite | 157 return suite |
| OLD | NEW |