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

Unified Diff: sync/syncable/model_type_unittest.cc

Issue 312333005: Make the "Tabs" item on about:sync non-yellow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added IsProxyType function and unit test Created 6 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/syncable/model_type.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/model_type_unittest.cc
diff --git a/sync/syncable/model_type_unittest.cc b/sync/syncable/model_type_unittest.cc
index 7bf50e55ed84f418d7935d0616ce711102498431..2869f315f5617e286fe3908d7dd40f016b6b95fe 100644
--- a/sync/syncable/model_type_unittest.cc
+++ b/sync/syncable/model_type_unittest.cc
@@ -71,6 +71,12 @@ TEST_F(ModelTypeTest, IsRealDataType) {
EXPECT_TRUE(IsRealDataType(APPS));
}
+TEST_F(ModelTypeTest, IsProxyType) {
+ EXPECT_FALSE(IsProxyType(BOOKMARKS));
+ EXPECT_FALSE(IsProxyType(MODEL_TYPE_COUNT));
+ EXPECT_TRUE(IsProxyType(PROXY_TABS));
+}
+
// Make sure we can convert ModelTypes to and from specifics field
// numbers.
TEST_F(ModelTypeTest, ModelTypeToFromSpecificsFieldNumber) {
« no previous file with comments | « sync/syncable/model_type.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698