| OLD | NEW |
| 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 18 matching lines...) Expand all Loading... |
| 29 TestEnumStringFunction( | 29 TestEnumStringFunction( |
| 30 GetBrowserTypeString, | 30 GetBrowserTypeString, |
| 31 sync_pb::SessionWindow::BrowserType_MIN, | 31 sync_pb::SessionWindow::BrowserType_MIN, |
| 32 sync_pb::SessionWindow::BrowserType_MAX); | 32 sync_pb::SessionWindow::BrowserType_MAX); |
| 33 } | 33 } |
| 34 | 34 |
| 35 TEST_F(ProtoEnumConversionsTest, GetPageTransitionString) { | 35 TEST_F(ProtoEnumConversionsTest, GetPageTransitionString) { |
| 36 // We have a gap, so we need to do two ranges. | 36 // We have a gap, so we need to do two ranges. |
| 37 TestEnumStringFunction( | 37 TestEnumStringFunction( |
| 38 GetPageTransitionString, | 38 GetPageTransitionString, |
| 39 sync_pb::TabNavigation::PageTransition_MIN, | 39 sync_pb::SyncEnums::PageTransition_MIN, |
| 40 sync_pb::TabNavigation::KEYWORD_GENERATED); | 40 sync_pb::SyncEnums::KEYWORD_GENERATED); |
| 41 TestEnumStringFunction( | 41 TestEnumStringFunction( |
| 42 GetPageTransitionString, | 42 GetPageTransitionString, |
| 43 sync_pb::TabNavigation::CHAIN_START, | 43 sync_pb::SyncEnums::CHAIN_START, |
| 44 sync_pb::TabNavigation::PageTransition_MAX); | 44 sync_pb::SyncEnums::PageTransition_MAX); |
| 45 } | 45 } |
| 46 | 46 |
| 47 TEST_F(ProtoEnumConversionsTest, GetPageTransitionQualifierString) { | 47 TEST_F(ProtoEnumConversionsTest, GetPageTransitionQualifierString) { |
| 48 TestEnumStringFunction( | 48 TestEnumStringFunction( |
| 49 GetPageTransitionQualifierString, | 49 GetPageTransitionQualifierString, |
| 50 sync_pb::TabNavigation::PageTransitionQualifier_MIN, | 50 sync_pb::SyncEnums::PageTransitionQualifier_MIN, |
| 51 sync_pb::TabNavigation::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::GetUpdatesSource_MAX); | 58 sync_pb::GetUpdatesCallerInfo::GetUpdatesSource_MAX); |
| 59 } | 59 } |
| 60 | 60 |
| 61 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) { | 61 TEST_F(ProtoEnumConversionsTest, GetResponseTypeString) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 80 | 80 |
| 81 TEST_F(ProtoEnumConversionsTest, GetActionString) { | 81 TEST_F(ProtoEnumConversionsTest, GetActionString) { |
| 82 TestEnumStringFunction( | 82 TestEnumStringFunction( |
| 83 GetActionString, | 83 GetActionString, |
| 84 sync_pb::SyncEnums::Action_MIN, | 84 sync_pb::SyncEnums::Action_MIN, |
| 85 sync_pb::SyncEnums::Action_MAX); | 85 sync_pb::SyncEnums::Action_MAX); |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace | 88 } // namespace |
| 89 } // namespace browser_sync | 89 } // namespace browser_sync |
| OLD | NEW |