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

Unified Diff: sync/util/data_type_histogram_unittest.cc

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 6 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') | no next file » | 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 0601d31007f29c464e144f23374653e3d98c0c84..f43a19bf166744faee434f1655b4f80f9e30bd0d 100644
--- a/sync/util/data_type_histogram_unittest.cc
+++ b/sync/util/data_type_histogram_unittest.cc
@@ -16,9 +16,9 @@ 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 = syncable::FIRST_REAL_MODEL_TYPE;
- i <= syncable::LAST_REAL_MODEL_TYPE; ++i) {
- syncable::ModelType type = syncable::ModelTypeFromInt(i);
+ for (int i = syncer::FIRST_REAL_MODEL_TYPE;
+ i <= syncer::LAST_REAL_MODEL_TYPE; ++i) {
+ syncer::ModelType type = syncer::ModelTypeFromInt(i);
#define PER_DATA_TYPE_MACRO(type_str) \
HISTOGRAM_COUNTS("Prefix" type_str "Suffix", 1);
SYNC_DATA_TYPE_HISTOGRAM(type);
@@ -29,9 +29,9 @@ TEST(DataTypeHistogramTest, BasicCount) {
// Create a histogram of type SYNC_FREQ_HISTOGRAM for each model type. Nothing
// should break.
TEST(DataTypeHistogramTest, BasicFreq) {
- for (int i = syncable::FIRST_REAL_MODEL_TYPE;
- i <= syncable::LAST_REAL_MODEL_TYPE; ++i) {
- syncable::ModelType type = syncable::ModelTypeFromInt(i);
+ for (int i = syncer::FIRST_REAL_MODEL_TYPE;
+ i <= syncer::LAST_REAL_MODEL_TYPE; ++i) {
+ syncer::ModelType type = syncer::ModelTypeFromInt(i);
#define PER_DATA_TYPE_MACRO(type_str) \
SYNC_FREQ_HISTOGRAM("Prefix" type_str "Suffix", \
base::TimeDelta::FromSeconds(1));
@@ -48,9 +48,9 @@ TEST(DataTypeHistogramTest, BasicEnum) {
TYPE_2,
TYPE_COUNT,
};
- for (int i = syncable::FIRST_REAL_MODEL_TYPE;
- i <= syncable::LAST_REAL_MODEL_TYPE; ++i) {
- syncable::ModelType type = syncable::ModelTypeFromInt(i);
+ for (int i = syncer::FIRST_REAL_MODEL_TYPE;
+ i <= syncer::LAST_REAL_MODEL_TYPE; ++i) {
+ syncer::ModelType type = syncer::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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698