This file contains tools for checking the feature state of all of the features which affect Cast products. Cast features build upon the Chrome feature system. Some aspects of Cast require the feature system to work differently, however, so some additional logic has been layered on top. Details are available in comments of the header file. The basics are:
cast_features.cc
so it lives alongside existing featuresRegisterFeature(&feature)
. You can add it to RegisterFeatures()
so it lives with existing featuresconst base::Feature kMyFeature{"my_feature", base::FEATURE_DISABLED_BY_DEFAULT}; void RegisterFeatures() { // ...other features RegisterFeature(&kMyFeature); }
RegisterFeaturesForTesting()
in your unit test constructor