summaryrefslogtreecommitdiffstats
path: root/chrome/test/nacl
diff options
context:
space:
mode:
authorjvoung <jvoung@chromium.org>2015-07-11 10:30:13 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-11 17:30:54 +0000
commit91f2e587178aefcf352ffe960fe686f0f81a6353 (patch)
treedef899de2e5155c86bedf75652830f04e42e036d /chrome/test/nacl
parent9781a676c0c669fe5ad210b9be1d322438c9a42c (diff)
downloadchromium_src-91f2e587178aefcf352ffe960fe686f0f81a6353.zip
chromium_src-91f2e587178aefcf352ffe960fe686f0f81a6353.tar.gz
chromium_src-91f2e587178aefcf352ffe960fe686f0f81a6353.tar.bz2
NaCl: Update revision in DEPS, b3d4cc1 -> a0efd24, update UMA test
This pulls in the following Native Client changes: 8300cc5: (jvoung@chromium.org) Update revision for PNaCl 7f631f3: (jvoung@chromium.org) Check for a different sym in pnacl-llc.nexe in prune_test (not SRPC). 014c352: (jvoung@chromium.org) PNaCl: Update LLVM revision in pnacl/COMPONENT_REVISIONS 8c8e1ec: (mcgrathr@chromium.org) Update glibc revision in tools/REVISION 3c09ce8: (mcgrathr@chromium.org) Add nptl/tst-cond23 to glibc-tests XFAIL list a0efd24: (thakis@chromium.org) Fix two -Wincompatible-pointer-types warnings. Changes: https://chromium.googlesource.com/native_client/src/native_client/+log/b3d4cc125348924f727d3b87cee3674a839b54a0..a0efd24 "8300cc5: (jvoung@chromium.org) Update revision for PNaCl" pulls in "7963493: (mseaborn@chromium.org) PNaCl: Link pnacl-llc.nexe so that it uses the IRT at run time", which changes the expectations for the translator validation cache UMA test. Adjust the UMA test. BUG=504696 TEST=browser_tests and nacl_integration CQ_EXTRA_TRYBOTS=tryserver.chromium.linux:linux_chromium_dbg_32_ng,linux_arm_compile,linux_nacl_sdk_build Review URL: https://codereview.chromium.org/1235733002 Cr-Commit-Position: refs/heads/master@{#338446}
Diffstat (limited to 'chrome/test/nacl')
-rw-r--r--chrome/test/nacl/nacl_browsertest_uma.cc28
1 files changed, 13 insertions, 15 deletions
diff --git a/chrome/test/nacl/nacl_browsertest_uma.cc b/chrome/test/nacl/nacl_browsertest_uma.cc
index a5e9fb6..553198f 100644
--- a/chrome/test/nacl/nacl_browsertest_uma.cc
+++ b/chrome/test/nacl/nacl_browsertest_uma.cc
@@ -63,17 +63,17 @@ NACL_BROWSER_TEST_F(NaClBrowserTest, SuccessfulLoadUMA, {
// Check validation cache usage:
if (IsAPnaclTest()) {
- // Should have received 4 validation queries:
- // - Two for the IRT: the app and one of the translator nexes use the IRT.
+ // Should have received 5 validation queries:
+ // - Three for the IRT: the app and both of the translator nexes use it.
// - Two for the two PNaCl translator nexes.
// The PNaCl app nexe comes from a delete-on-close temp file, so it
// doesn't have a stable identity for validation caching. Overall, there
// are 3 eligible nexes. The first 3 queries for these eligible nexes
- // are misses, and one of the IRT queries is a hit.
+ // are misses, and the latter two of the IRT queries are hits.
histograms.ExpectBucketCount("NaCl.ValidationCache.Query",
nacl::NaClBrowser::CACHE_MISS, 3);
histograms.ExpectBucketCount("NaCl.ValidationCache.Query",
- nacl::NaClBrowser::CACHE_HIT, 1);
+ nacl::NaClBrowser::CACHE_HIT, 2);
// Should have received a cache setting afterwards (IRT set only once).
histograms.ExpectUniqueSample("NaCl.ValidationCache.Set",
nacl::NaClBrowser::CACHE_HIT, 3);
@@ -83,7 +83,7 @@ NACL_BROWSER_TEST_F(NaClBrowserTest, SuccessfulLoadUMA, {
// Should have one cache query for the IRT.
histograms.ExpectUniqueSample("NaCl.ValidationCache.Query",
nacl::NaClBrowser::CACHE_MISS, 1);
- // Should have received a cache setting afterwards for IRT and translators.
+ // Should have received a cache setting afterwards for the IRT.
histograms.ExpectUniqueSample("NaCl.ValidationCache.Set",
nacl::NaClBrowser::CACHE_HIT, 1);
}
@@ -231,17 +231,15 @@ IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnacl,
RunLoadTest(FILE_PATH_LITERAL("pnacl_options.html?use_nmf=o_0"));
content::FetchHistogramsFromChildProcesses();
- // Should have received 4 validation queries:
- // - Two for the IRT: the app and one of the translator nexes use the IRT.
+ // Should have received 5 validation queries:
+ // - Three for the IRT: the app and both of the translator nexes use it.
// - Two for the two PNaCl translator nexes.
- // The PNaCl app nexe comes from a delete-on-close temp file, so it
- // doesn't have a stable identity for validation caching. Overall, there
- // are 3 eligible nexes. The first 3 queries for these eligible nexes
- // are misses, and one of the IRT queries is a hit.
+ // - The PNaCl app nexe comes from a delete-on-close temp file, so it
+ // doesn't have a stable identity for validation caching.
histograms.ExpectBucketCount("NaCl.ValidationCache.Query",
nacl::NaClBrowser::CACHE_MISS, 3);
histograms.ExpectBucketCount("NaCl.ValidationCache.Query",
- nacl::NaClBrowser::CACHE_HIT, 1);
+ nacl::NaClBrowser::CACHE_HIT, 2);
// Should have received a cache setting afterwards.
histograms.ExpectUniqueSample("NaCl.ValidationCache.Set",
nacl::NaClBrowser::CACHE_HIT, 3);
@@ -252,11 +250,11 @@ IN_PROC_BROWSER_TEST_F(NaClBrowserTestPnacl,
// cache hits!)
RunLoadTest(FILE_PATH_LITERAL("pnacl_options.html?use_nmf=o_2"));
- // Should now have 4 more queries on top of the previous ones.
- histograms.ExpectTotalCount("NaCl.ValidationCache.Query", 8);
+ // Should now have 5 more queries on top of the previous ones.
+ histograms.ExpectTotalCount("NaCl.ValidationCache.Query", 10);
// With the extra queries being cache hits.
histograms.ExpectBucketCount("NaCl.ValidationCache.Query",
- nacl::NaClBrowser::CACHE_HIT, 5);
+ nacl::NaClBrowser::CACHE_HIT, 7);
// No extra cache settings.
histograms.ExpectUniqueSample("NaCl.ValidationCache.Set",
nacl::NaClBrowser::CACHE_HIT, 3);