Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Unified Diff: sync/util/data_type_histogram_unittest.cc

Issue 10795018: [Sync] Remove unneeded 'using syncer::' lines and 'syncer::' scopings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fiix indent Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/util/data_type_histogram.h ('k') | sync/util/logging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/util/data_type_histogram_unittest.cc
diff --git a/sync/util/data_type_histogram_unittest.cc b/sync/util/data_type_histogram_unittest.cc
index f43a19bf166744faee434f1655b4f80f9e30bd0d..6ca16199fa67fbb555fefbf150f592f22387e39d 100644
--- a/sync/util/data_type_histogram_unittest.cc
+++ b/sync/util/data_type_histogram_unittest.cc
@@ -16,9 +16,8 @@ class DataTypeHistogramTest : public testing::Test {
// Create a histogram of type HISTOGRAM_COUNTS for each model type. Nothing
// should break.
TEST(DataTypeHistogramTest, BasicCount) {
- for (int i = syncer::FIRST_REAL_MODEL_TYPE;
- i <= syncer::LAST_REAL_MODEL_TYPE; ++i) {
- syncer::ModelType type = syncer::ModelTypeFromInt(i);
+ for (int i = FIRST_REAL_MODEL_TYPE; i <= LAST_REAL_MODEL_TYPE; ++i) {
+ ModelType type = ModelTypeFromInt(i);
#define PER_DATA_TYPE_MACRO(type_str) \
HISTOGRAM_COUNTS("Prefix" type_str "Suffix", 1);
SYNC_DATA_TYPE_HISTOGRAM(type);
@@ -29,9 +28,8 @@ TEST(DataTypeHistogramTest, BasicCount) {
// Create a histogram of type SYNC_FREQ_HISTOGRAM for each model type. Nothing
// should break.
TEST(DataTypeHistogramTest, BasicFreq) {
- for (int i = syncer::FIRST_REAL_MODEL_TYPE;
- i <= syncer::LAST_REAL_MODEL_TYPE; ++i) {
- syncer::ModelType type = syncer::ModelTypeFromInt(i);
+ for (int i = FIRST_REAL_MODEL_TYPE; i <= LAST_REAL_MODEL_TYPE; ++i) {
+ ModelType type = ModelTypeFromInt(i);
#define PER_DATA_TYPE_MACRO(type_str) \
SYNC_FREQ_HISTOGRAM("Prefix" type_str "Suffix", \
base::TimeDelta::FromSeconds(1));
@@ -48,9 +46,8 @@ TEST(DataTypeHistogramTest, BasicEnum) {
TYPE_2,
TYPE_COUNT,
};
- for (int i = syncer::FIRST_REAL_MODEL_TYPE;
- i <= syncer::LAST_REAL_MODEL_TYPE; ++i) {
- syncer::ModelType type = syncer::ModelTypeFromInt(i);
+ for (int i = FIRST_REAL_MODEL_TYPE; i <= LAST_REAL_MODEL_TYPE; ++i) {
+ ModelType type = ModelTypeFromInt(i);
#define PER_DATA_TYPE_MACRO(type_str) \
UMA_HISTOGRAM_ENUMERATION("Prefix" type_str "Suffix", \
(i % 2 ? TYPE_1 : TYPE_2), TYPE_COUNT);
« no previous file with comments | « sync/util/data_type_histogram.h ('k') | sync/util/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698