Loading metricsd/uploader/system_profile_cache.cc +4 −4 Original line number Diff line number Diff line Loading @@ -179,13 +179,13 @@ std::string SystemProfileCache::GetPersistentGUID( metrics::SystemProfileProto_Channel SystemProfileCache::ProtoChannelFromString( const std::string& channel) { if (channel == "stable") { if (channel == "stable-channel") { return metrics::SystemProfileProto::CHANNEL_STABLE; } else if (channel == "dev") { } else if (channel == "dev-channel") { return metrics::SystemProfileProto::CHANNEL_DEV; } else if (channel == "beta") { } else if (channel == "beta-channel") { return metrics::SystemProfileProto::CHANNEL_BETA; } else if (channel == "canary") { } else if (channel == "canary-channel") { return metrics::SystemProfileProto::CHANNEL_CANARY; } Loading metricsd/uploader/upload_service_test.cc +2 −2 Original line number Diff line number Diff line Loading @@ -214,10 +214,10 @@ TEST_F(UploadServiceTest, ExtractChannelFromString) { metrics::SystemProfileProto::CHANNEL_UNKNOWN); EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_DEV, SystemProfileCache::ProtoChannelFromString("dev")); SystemProfileCache::ProtoChannelFromString("dev-channel")); EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_STABLE, SystemProfileCache::ProtoChannelFromString("stable")); SystemProfileCache::ProtoChannelFromString("stable-channel")); EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_UNKNOWN, SystemProfileCache::ProtoChannelFromString("this is a test")); Loading Loading
metricsd/uploader/system_profile_cache.cc +4 −4 Original line number Diff line number Diff line Loading @@ -179,13 +179,13 @@ std::string SystemProfileCache::GetPersistentGUID( metrics::SystemProfileProto_Channel SystemProfileCache::ProtoChannelFromString( const std::string& channel) { if (channel == "stable") { if (channel == "stable-channel") { return metrics::SystemProfileProto::CHANNEL_STABLE; } else if (channel == "dev") { } else if (channel == "dev-channel") { return metrics::SystemProfileProto::CHANNEL_DEV; } else if (channel == "beta") { } else if (channel == "beta-channel") { return metrics::SystemProfileProto::CHANNEL_BETA; } else if (channel == "canary") { } else if (channel == "canary-channel") { return metrics::SystemProfileProto::CHANNEL_CANARY; } Loading
metricsd/uploader/upload_service_test.cc +2 −2 Original line number Diff line number Diff line Loading @@ -214,10 +214,10 @@ TEST_F(UploadServiceTest, ExtractChannelFromString) { metrics::SystemProfileProto::CHANNEL_UNKNOWN); EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_DEV, SystemProfileCache::ProtoChannelFromString("dev")); SystemProfileCache::ProtoChannelFromString("dev-channel")); EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_STABLE, SystemProfileCache::ProtoChannelFromString("stable")); SystemProfileCache::ProtoChannelFromString("stable-channel")); EXPECT_EQ(metrics::SystemProfileProto::CHANNEL_UNKNOWN, SystemProfileCache::ProtoChannelFromString("this is a test")); Loading