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

Side by Side Diff: sync/engine/store_timestamps_command_unittest.cc

Issue 11958029: [Sync] Add support for proxy types (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Switch to ProxyTypes Created 7 years, 10 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/engine/download_updates_command.cc ('k') | sync/internal_api/debug_info_event_listener.cc » ('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 #include "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "sync/engine/store_timestamps_command.h" 6 #include "sync/engine/store_timestamps_command.h"
7 #include "sync/internal_api/public/base/model_type.h" 7 #include "sync/internal_api/public/base/model_type.h"
8 #include "sync/protocol/sync.pb.h" 8 #include "sync/protocol/sync.pb.h"
9 #include "sync/test/engine/syncer_command_test.h" 9 #include "sync/test/engine/syncer_command_test.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 response, session()->context()->directory()); 64 response, session()->context()->directory());
65 65
66 EXPECT_TRUE( 66 EXPECT_TRUE(
67 forward_progress_types.Equals( 67 forward_progress_types.Equals(
68 ModelTypeSet(BOOKMARKS, HISTORY_DELETE_DIRECTIVES))); 68 ModelTypeSet(BOOKMARKS, HISTORY_DELETE_DIRECTIVES)));
69 69
70 EXPECT_EQ("token1", GetProgessMarkerToken(BOOKMARKS)); 70 EXPECT_EQ("token1", GetProgessMarkerToken(BOOKMARKS));
71 EXPECT_EQ("token2", GetProgessMarkerToken(HISTORY_DELETE_DIRECTIVES)); 71 EXPECT_EQ("token2", GetProgessMarkerToken(HISTORY_DELETE_DIRECTIVES));
72 72
73 ModelTypeSet non_forward_progress_types = 73 ModelTypeSet non_forward_progress_types =
74 Difference(ModelTypeSet::All(), forward_progress_types); 74 Difference(ProtocolTypes(), forward_progress_types);
75 for (ModelTypeSet::Iterator it = non_forward_progress_types.First(); 75 for (ModelTypeSet::Iterator it = non_forward_progress_types.First();
76 it.Good(); it.Inc()) { 76 it.Good(); it.Inc()) {
77 EXPECT_TRUE(GetProgessMarkerToken(it.Get()).empty()); 77 EXPECT_TRUE(GetProgessMarkerToken(it.Get()).empty());
78 } 78 }
79 } 79 }
80 80
81 } // namespace 81 } // namespace
82 82
83 } // namespace syncer 83 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/engine/download_updates_command.cc ('k') | sync/internal_api/debug_info_event_listener.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698