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

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

Issue 11314008: sync: Follow-up to conflict resolution refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tests Created 8 years, 1 month 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/get_updates_caller_info.proto ('k') | sync/sessions/session_state.h » ('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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 TestEnumStringFunction( 43 TestEnumStringFunction(
44 GetPageTransitionRedirectTypeString, 44 GetPageTransitionRedirectTypeString,
45 sync_pb::SyncEnums::PageTransitionRedirectType_MIN, 45 sync_pb::SyncEnums::PageTransitionRedirectType_MIN,
46 sync_pb::SyncEnums::PageTransitionRedirectType_MAX); 46 sync_pb::SyncEnums::PageTransitionRedirectType_MAX);
47 } 47 }
48 48
49 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) { 49 TEST_F(ProtoEnumConversionsTest, GetUpdatesSourceString) {
50 TestEnumStringFunction( 50 TestEnumStringFunction(
51 GetUpdatesSourceString, 51 GetUpdatesSourceString,
52 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN, 52 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MIN,
53 sync_pb::GetUpdatesCallerInfo::SYNC_CYCLE_CONTINUATION); 53 sync_pb::GetUpdatesCallerInfo::PERIODIC);
54 TestEnumStringFunction( 54 TestEnumStringFunction(
55 GetUpdatesSourceString, 55 GetUpdatesSourceString,
56 sync_pb::GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE, 56 sync_pb::GetUpdatesCallerInfo::NEWLY_SUPPORTED_DATATYPE,
57 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); 57 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX);
58 } 58 }
59 59
60 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) { 60 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) {
61 TestEnumStringFunction( 61 TestEnumStringFunction(
62 GetResponseTypeString, 62 GetResponseTypeString,
63 sync_pb::CommitResponse::ResponseType_MIN, 63 sync_pb::CommitResponse::ResponseType_MIN,
(...skipping 15 matching lines...) Expand all
79 79
80 TEST_F(ProtoEnumConversionsTest, GetActionString) { 80 TEST_F(ProtoEnumConversionsTest, GetActionString) {
81 TestEnumStringFunction( 81 TestEnumStringFunction(
82 GetActionString, 82 GetActionString,
83 sync_pb::SyncEnums::Action_MIN, 83 sync_pb::SyncEnums::Action_MIN,
84 sync_pb::SyncEnums::Action_MAX); 84 sync_pb::SyncEnums::Action_MAX);
85 } 85 }
86 86
87 } // namespace 87 } // namespace
88 } // namespace syncer 88 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/get_updates_caller_info.proto ('k') | sync/sessions/session_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698