Lines Matching full:extension
10 #include "chrome/common/extensions/extension.h"
16 // The tests that are run by this extension are expected to record the following
20 const char* name; // base name of metric without extension id.
27 // The tests that are run by this extension are expected to record the following
31 const char* name; // base name of metric without extension id.
48 // Build the full name of a metrics for the given extension. Each metric
49 // is made up of the unique name within the extension followed by the
50 // extension's id.
51 std::string BuildFullName(const std::string& name, const Extension* extension) {
53 full_name += extension->id();
63 void ValidateUserActions(const Extension* extension,
99 void UserActionObserver::ValidateUserActions(const Extension* extension,
106 EXPECT_EQ(ua.count, GetMetricCount(BuildFullName(ua.name, extension)));
110 void ValidateHistograms(const Extension* extension,
122 std::string name(BuildFullName(r.name, extension));
149 const Extension* extension = GetSingleLoadedExtension();
150 ASSERT_TRUE(extension);
152 observer.ValidateUserActions(extension,
155 ValidateHistograms(extension, g_histograms, arraysize(g_histograms));