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

Side by Side Diff: sync/protocol/proto_enum_conversions_unittest.cc

Issue 10584019: sync: Remove ClearUserData command. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sync/protocol/proto_enum_conversions.cc ('k') | sync/protocol/sync.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_enum_conversions.h" 7 #include "sync/protocol/proto_enum_conversions.h"
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 TestEnumStringFunction( 48 TestEnumStringFunction(
49 GetPageTransitionQualifierString, 49 GetPageTransitionQualifierString,
50 sync_pb::SyncEnums::PageTransitionQualifier_MIN, 50 sync_pb::SyncEnums::PageTransitionQualifier_MIN,
51 sync_pb::SyncEnums::PageTransitionQualifier_MAX); 51 sync_pb::SyncEnums::PageTransitionQualifier_MAX);
52 } 52 }
53 53
54 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) { 54 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) {
55 TestEnumStringFunction( 55 TestEnumStringFunction(
56 GetUpdatesSourceString, 56 GetUpdatesSourceString,
57 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN, 57 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN,
58 sync_pb::GetUpdatesCallerInfo::SYNC_CYCLE_CONTINUATION);
59 TestEnumStringFunction(
60 GetUpdatesSourceString,
61 sync_pb::GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE,
58 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); 62 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX);
59 } 63 }
60 64
61 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) { 65 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) {
62 TestEnumStringFunction( 66 TestEnumStringFunction(
63 GetResponseTypeString, 67 GetResponseTypeString,
64 sync_pb::CommitResponse::ResponseType_MIN, 68 sync_pb::CommitResponse::ResponseType_MIN,
65 sync_pb::CommitResponse::ResponseType_MAX); 69 sync_pb::CommitResponse::ResponseType_MAX);
66 } 70 }
67 71
(...skipping 12 matching lines...) Expand all
80 84
81 TEST_F(ProtoEnumConversionsTest, GetActionString) { 85 TEST_F(ProtoEnumConversionsTest, GetActionString) {
82 TestEnumStringFunction( 86 TestEnumStringFunction(
83 GetActionString, 87 GetActionString,
84 sync_pb::SyncEnums::Action_MIN, 88 sync_pb::SyncEnums::Action_MIN,
85 sync_pb::SyncEnums::Action_MAX); 89 sync_pb::SyncEnums::Action_MAX);
86 } 90 }
87 91
88 } // namespace 92 } // namespace
89 } // namespace browser_sync 93 } // namespace browser_sync
OLDNEW
« no previous file with comments | « sync/protocol/proto_enum_conversions.cc ('k') | sync/protocol/sync.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698