Chromium Code Reviews| Index: chrome/browser/metrics/metrics_log_unittest.cc |
| diff --git a/chrome/browser/metrics/metrics_log_unittest.cc b/chrome/browser/metrics/metrics_log_unittest.cc |
| index 2f112a9fb33d21744e12b649dbe28dcf4d0abc01..91c1cf333c526f5645691899116483d59e8f184c 100644 |
| --- a/chrome/browser/metrics/metrics_log_unittest.cc |
| +++ b/chrome/browser/metrics/metrics_log_unittest.cc |
| @@ -23,12 +23,13 @@ |
| #include "chrome/browser/google/google_util.h" |
| #include "chrome/browser/prefs/browser_prefs.h" |
| #include "chrome/common/chrome_switches.h" |
| -#include "chrome/common/metrics/proto/profiler_event.pb.h" |
| -#include "chrome/common/metrics/proto/system_profile.pb.h" |
| +#include "chrome/common/chrome_version_info.h" |
| #include "chrome/common/metrics/variations/variations_util.h" |
| #include "chrome/common/pref_names.h" |
| #include "chrome/installer/util/google_update_settings.h" |
| #include "components/metrics/metrics_hashes.h" |
| +#include "components/metrics/proto/profiler_event.pb.h" |
| +#include "components/metrics/proto/system_profile.pb.h" |
| #include "components/variations/metrics_util.h" |
| #include "content/public/browser/browser_thread.h" |
| #include "content/public/common/process_type.h" |
| @@ -650,6 +651,11 @@ TEST_F(MetricsLogTest, RecordProfilerData) { |
| } |
| } |
| +TEST_F(MetricsLogTest, ChromeVersionWritten) { |
|
Alexei Svitkine (slow)
2014/04/22 15:28:10
The name of this test should say "channel" somewhe
bsimonnet
2014/04/22 16:52:43
Done.
|
| + TestMetricsLog log("user@test.com", kSessionId, MetricsLog::ONGOING_LOG); |
| + EXPECT_TRUE(log.uma_proto().system_profile().has_channel()); |
| +} |
| + |
| #if defined(OS_CHROMEOS) |
| TEST_F(MetricsLogTest, MultiProfileUserCount) { |
| std::string user1("user1@example.com"); |