OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/test/histogram_tester.h" | 5 #include "base/test/histogram_tester.h" |
| 6 #include "build/build_config.h" |
6 #include "chrome/test/nacl/nacl_browsertest_util.h" | 7 #include "chrome/test/nacl/nacl_browsertest_util.h" |
7 #include "components/nacl/browser/nacl_browser.h" | 8 #include "components/nacl/browser/nacl_browser.h" |
8 #include "components/nacl/renderer/platform_info.h" | 9 #include "components/nacl/renderer/platform_info.h" |
9 #include "components/nacl/renderer/ppb_nacl_private.h" | 10 #include "components/nacl/renderer/ppb_nacl_private.h" |
10 #include "content/public/test/browser_test_utils.h" | 11 #include "content/public/test/browser_test_utils.h" |
11 #include "native_client/src/trusted/service_runtime/nacl_error_code.h" | 12 #include "native_client/src/trusted/service_runtime/nacl_error_code.h" |
12 | 13 |
13 namespace { | 14 namespace { |
14 | 15 |
15 void CheckPNaClLoadUMAs(base::HistogramTester& histograms, | 16 void CheckPNaClLoadUMAs(base::HistogramTester& histograms, |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 histograms.ExpectUniqueSample("NaCl.ValidationCache.Set", | 280 histograms.ExpectUniqueSample("NaCl.ValidationCache.Set", |
280 nacl::NaClBrowser::CACHE_HIT, | 281 nacl::NaClBrowser::CACHE_HIT, |
281 3 + subzero_o0_count); | 282 3 + subzero_o0_count); |
282 } | 283 } |
283 | 284 |
284 | 285 |
285 // TODO(ncbray) convert the rest of nacl_uma.py (currently in the NaCl repo.) | 286 // TODO(ncbray) convert the rest of nacl_uma.py (currently in the NaCl repo.) |
286 // Test validation failures and crashes. | 287 // Test validation failures and crashes. |
287 | 288 |
288 } // namespace | 289 } // namespace |
OLD | NEW |