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

Unified Diff: chrome/browser/extensions/app_sync_data_unittest.cc

Issue 10920017: [Sync] Generalize StringOrdinal to handle ordinal_in_parent field (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Relax tests Created 8 years, 3 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 | « chrome/browser/extensions/app_sync_data.cc ('k') | chrome/browser/extensions/crx_installer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/app_sync_data_unittest.cc
diff --git a/chrome/browser/extensions/app_sync_data_unittest.cc b/chrome/browser/extensions/app_sync_data_unittest.cc
index 18f676f66af0bf134b45b35f5fe833af00a47fc1..64a9ab914c5258dd1fa1a66b7b5664ca8d5fe0bc 100644
--- a/chrome/browser/extensions/app_sync_data_unittest.cc
+++ b/chrome/browser/extensions/app_sync_data_unittest.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/extensions/app_sync_data.h"
+#include "sync/api/string_ordinal.h"
#include "sync/protocol/app_specifics.pb.h"
#include "sync/protocol/sync.pb.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -41,9 +42,9 @@ TEST_F(AppSyncDataTest, SyncDataToExtensionSyncDataForApp) {
sync_pb::EntitySpecifics entity;
sync_pb::AppSpecifics* app_specifics = entity.mutable_app();
app_specifics->set_app_launch_ordinal(
- StringOrdinal::CreateInitialOrdinal().ToString());
+ syncer::StringOrdinal::CreateInitialOrdinal().ToInternalValue());
app_specifics->set_page_ordinal(
- StringOrdinal::CreateInitialOrdinal().ToString());
+ syncer::StringOrdinal::CreateInitialOrdinal().ToInternalValue());
sync_pb::AppNotificationSettings* notif_settings =
app_specifics->mutable_notification_settings();
notif_settings->set_oauth_client_id(kOAuthClientId);
@@ -56,9 +57,9 @@ TEST_F(AppSyncDataTest, SyncDataToExtensionSyncDataForApp) {
AppSyncData app_sync_data(sync_data);
EXPECT_EQ(app_specifics->app_launch_ordinal(),
- app_sync_data.app_launch_ordinal().ToString());
+ app_sync_data.app_launch_ordinal().ToInternalValue());
EXPECT_EQ(app_specifics->page_ordinal(),
- app_sync_data.page_ordinal().ToString());
+ app_sync_data.page_ordinal().ToInternalValue());
EXPECT_EQ(notif_settings->oauth_client_id(),
app_sync_data.notifications_client_id());
EXPECT_EQ(notif_settings->disabled(),
@@ -71,9 +72,9 @@ TEST_F(AppSyncDataTest, ExtensionSyncDataToSyncDataForApp) {
sync_pb::EntitySpecifics entity;
sync_pb::AppSpecifics* input_specifics = entity.mutable_app();
input_specifics->set_app_launch_ordinal(
- StringOrdinal::CreateInitialOrdinal().ToString());
+ syncer::StringOrdinal::CreateInitialOrdinal().ToInternalValue());
input_specifics->set_page_ordinal(
- StringOrdinal::CreateInitialOrdinal().ToString());
+ syncer::StringOrdinal::CreateInitialOrdinal().ToInternalValue());
sync_pb::AppNotificationSettings* notif_settings =
input_specifics->mutable_notification_settings();
notif_settings->set_oauth_client_id(kOAuthClientId);
« no previous file with comments | « chrome/browser/extensions/app_sync_data.cc ('k') | chrome/browser/extensions/crx_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698