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

Unified Diff: chrome/browser/sync/protocol/proto_value_conversions_unittest.cc

Issue 7150023: Add protobuffer and model type for syncing custom search engines. Includes all boilerplate helper... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/browser/sync/protocol/proto_value_conversions_unittest.cc
===================================================================
--- chrome/browser/sync/protocol/proto_value_conversions_unittest.cc (revision 89422)
+++ chrome/browser/sync/protocol/proto_value_conversions_unittest.cc (working copy)
@@ -16,6 +16,7 @@
#include "chrome/browser/sync/protocol/nigori_specifics.pb.h"
#include "chrome/browser/sync/protocol/password_specifics.pb.h"
#include "chrome/browser/sync/protocol/preference_specifics.pb.h"
+#include "chrome/browser/sync/protocol/search_engine_specifics.pb.h"
#include "chrome/browser/sync/protocol/session_specifics.pb.h"
#include "chrome/browser/sync/protocol/sync.pb.h"
#include "chrome/browser/sync/protocol/theme_specifics.pb.h"
@@ -43,7 +44,7 @@
// If this number changes, that means we added or removed a data
// type. Don't forget to add a unit test for {New
// type}SpecificsToValue below.
- EXPECT_EQ(13, syncable::MODEL_TYPE_COUNT);
+ EXPECT_EQ(14, syncable::MODEL_TYPE_COUNT);
// We'd also like to check if we changed any field in our messages.
// However, that's hard to do: sizeof could work, but it's
@@ -118,6 +119,10 @@
TestSpecificsToValue(PreferenceSpecificsToValue);
}
+TEST_F(ProtoValueConversionsTest, SearchEngineSpecificsToValue) {
+ TestSpecificsToValue(SearchEngineSpecificsToValue);
+}
+
TEST_F(ProtoValueConversionsTest, SessionSpecificsToValue) {
TestSpecificsToValue(SessionSpecificsToValue);
}
@@ -146,6 +151,7 @@
SET_EXTENSION(nigori);
SET_EXTENSION(password);
SET_EXTENSION(preference);
+ SET_EXTENSION(search_engine);
SET_EXTENSION(session);
SET_EXTENSION(theme);
SET_EXTENSION(typed_url);
« no previous file with comments | « chrome/browser/sync/protocol/proto_value_conversions.cc ('k') | chrome/browser/sync/protocol/search_engine_specifics.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698