Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: ppapi/tests/test_uma.cc

Issue 61643022: Proxy private UMA pepper interface for out-of-process and NaCl plugins. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unused histogram names Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ppapi/tests/test_uma.cc
diff --git a/ppapi/tests/test_uma.cc b/ppapi/tests/test_uma.cc
index 8892bea3dba6933cabef0b412d46edebc0d35189..ef2100585a93cbca3ab80806f00ebf3381c3b335 100644
--- a/ppapi/tests/test_uma.cc
+++ b/ppapi/tests/test_uma.cc
@@ -25,31 +25,34 @@ void TestUMA::RunTests(const std::string& filter) {
std::string TestUMA::TestCount() {
pp::Var name_var = pp::Var("Test.CountHistogram");
PP_Var name = name_var.pp_var();
- uma_interface_->HistogramCustomCounts(name, 10, 1, 100, 50);
- uma_interface_->HistogramCustomCounts(name, 30, 1, 100, 50);
- uma_interface_->HistogramCustomCounts(name, 20, 1, 100, 50);
- uma_interface_->HistogramCustomCounts(name, 40, 1, 100, 50);
+ PP_Instance instance = instance_->pp_instance();
+ uma_interface_->HistogramCustomCounts(instance, name, 10, 1, 100, 50);
+ uma_interface_->HistogramCustomCounts(instance, name, 30, 1, 100, 50);
+ uma_interface_->HistogramCustomCounts(instance, name, 20, 1, 100, 50);
+ uma_interface_->HistogramCustomCounts(instance, name, 40, 1, 100, 50);
PASS();
}
std::string TestUMA::TestTime() {
pp::Var name_var = pp::Var("Test.TimeHistogram");
PP_Var name = name_var.pp_var();
- uma_interface_->HistogramCustomTimes(name, 100, 1, 10000, 50);
- uma_interface_->HistogramCustomTimes(name, 1000, 1, 10000, 50);
- uma_interface_->HistogramCustomTimes(name, 5000, 1, 10000, 50);
- uma_interface_->HistogramCustomTimes(name, 10, 1, 10000, 50);
+ PP_Instance instance = instance_->pp_instance();
+ uma_interface_->HistogramCustomTimes(instance, name, 100, 1, 10000, 50);
+ uma_interface_->HistogramCustomTimes(instance, name, 1000, 1, 10000, 50);
+ uma_interface_->HistogramCustomTimes(instance, name, 5000, 1, 10000, 50);
+ uma_interface_->HistogramCustomTimes(instance, name, 10, 1, 10000, 50);
PASS();
}
std::string TestUMA::TestEnum() {
pp::Var name_var = pp::Var("Test.EnumHistogram");
PP_Var name = name_var.pp_var();
- uma_interface_->HistogramEnumeration(name, 0, 5);
- uma_interface_->HistogramEnumeration(name, 3, 5);
- uma_interface_->HistogramEnumeration(name, 3, 5);
- uma_interface_->HistogramEnumeration(name, 1, 5);
- uma_interface_->HistogramEnumeration(name, 2, 5);
+ PP_Instance instance = instance_->pp_instance();
+ uma_interface_->HistogramEnumeration(instance, name, 0, 5);
+ uma_interface_->HistogramEnumeration(instance, name, 3, 5);
+ uma_interface_->HistogramEnumeration(instance, name, 3, 5);
+ uma_interface_->HistogramEnumeration(instance, name, 1, 5);
+ uma_interface_->HistogramEnumeration(instance, name, 2, 5);
PASS();
}

Powered by Google App Engine
This is Rietveld 408576698