Skip to content

Commit

Permalink
Fix compiling unit_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
atuchin-m committed Oct 31, 2024
1 parent 5fc4228 commit c4d7f5c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@ void ChromeMetricsServiceClient::RegisterMetricsServiceProviders() {
void ChromeMetricsServiceClient::RegisterUKMProviders() {
// Do nothing.
}

ChromeMetricsServiceClient::ChromeMetricsServiceClient(
metrics::MetricsStateManager* state_manager,
variations::SyntheticTrialRegistry* synthetic_trial_registry)
: ChromeMetricsServiceClient_ChromiumImpl(state_manager,
synthetic_trial_registry) {}
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,20 @@

class ChromeMetricsServiceClient
: public ChromeMetricsServiceClient_ChromiumImpl {
private:
public:
void RegisterMetricsServiceProviders() override;
void RegisterUKMProviders() override;

ChromeMetricsServiceClient(
metrics::MetricsStateManager* state_manager,
variations::SyntheticTrialRegistry* synthetic_trial_registry);

private:
// TODO: remove?
friend class ChromeMetricsServiceClientTest;
friend class ChromeMetricsServiceClientTestIgnoredForAppMetrics;
friend class ChromeMetricsServiceClientTestWithoutUKMProviders;
FRIEND_TEST_ALL_PREFIXES(ChromeMetricsServiceClientTest, IsWebstoreExtension);
};

#endif // BRAVE_CHROMIUM_SRC_CHROME_BROWSER_METRICS_CHROME_METRICS_SERVICE_CLIENT_H_

0 comments on commit c4d7f5c

Please sign in to comment.