Home
last modified time | relevance | path

Searched refs:Invalidation (Results 1 – 25 of 50) sorted by relevance

12

/external/chromium_org/sync/internal_api/public/base/
Dinvalidation.cc27 Invalidation Invalidation::Init( in Init()
31 return Invalidation(id, false, version, payload, AckHandle::CreateUnique()); in Init()
34 Invalidation Invalidation::InitUnknownVersion( in InitUnknownVersion()
36 return Invalidation(id, true, kInvalidVersion, in InitUnknownVersion()
40 Invalidation Invalidation::InitFromDroppedInvalidation( in InitFromDroppedInvalidation()
41 const Invalidation& dropped) { in InitFromDroppedInvalidation()
42 return Invalidation(dropped.id_, true, kInvalidVersion, in InitFromDroppedInvalidation()
46 scoped_ptr<Invalidation> Invalidation::InitFromValue( in InitFromValue()
54 return scoped_ptr<Invalidation>(); in InitFromValue()
59 return scoped_ptr<Invalidation>(); in InitFromValue()
[all …]
Dinvalidation.h26 class SYNC_EXPORT Invalidation {
29 static Invalidation Init(
33 static Invalidation InitUnknownVersion(const invalidation::ObjectId& id);
34 static Invalidation InitFromDroppedInvalidation(const Invalidation& dropped);
35 static scoped_ptr<Invalidation> InitFromValue(
38 ~Invalidation();
41 bool Equals(const Invalidation& other) const;
98 Invalidation(const invalidation::ObjectId& id,
Dobject_id_invalidation_map_test_util.cc45 InvalidationEqPredicate(const Invalidation& inv1) in InvalidationEqPredicate()
48 bool operator()(const Invalidation& inv2) { in operator ()()
52 const Invalidation& inv1_;
61 std::vector<syncer::Invalidation> expected_invalidations; in MatchAndExplain()
62 std::vector<syncer::Invalidation> actual_invalidations; in MatchAndExplain()
67 std::vector<syncer::Invalidation> expected_only; in MatchAndExplain()
68 std::vector<syncer::Invalidation> actual_only; in MatchAndExplain()
70 for (std::vector<syncer::Invalidation>::iterator it = in MatchAndExplain()
81 for (std::vector<syncer::Invalidation>::iterator it = in MatchAndExplain()
Dinvalidation_test_util.cc57 : public MatcherInterface<const Invalidation&> {
59 explicit InvalidationEqMatcher(const Invalidation& expected);
61 virtual bool MatchAndExplain(const Invalidation& actual,
67 const Invalidation expected_;
73 const Invalidation& expected) : expected_(expected) { in InvalidationEqMatcher()
77 const Invalidation& actual, MatchResultListener* listener) const { in MatchAndExplain()
113 void PrintTo(const Invalidation& inv, ::std::ostream* os) { in PrintTo()
117 Matcher<const Invalidation&> Eq(const Invalidation& expected) { in Eq()
Dinvalidation_test_util.h15 class Invalidation; variable
20 void PrintTo(const Invalidation& invalidation, ::std::ostream* os);
22 ::testing::Matcher<const Invalidation&> Eq(const Invalidation& expected);
/external/chromium_org/sync/notifier/
Dunacked_invalidation_set_unittest.cc45 Invalidation inv1 = Invalidation::Init(kObjectId_, 10, "payload"); in TEST_F()
55 Invalidation inv1 = Invalidation::Init(kObjectId_, 10, "payload"); in TEST_F()
64 Invalidation inv1 = Invalidation::Init(kObjectId_, 10, "payload"); in TEST_F()
65 Invalidation inv2 = Invalidation::InitUnknownVersion(kObjectId_); in TEST_F()
66 Invalidation inv3 = Invalidation::InitUnknownVersion(kObjectId_); in TEST_F()
81 Invalidation inv = Invalidation::Init(kObjectId_, i, "payload"); in TEST_F()
97 Invalidation inv = Invalidation::Init(kObjectId_, i, "payload"); in TEST_F()
115 Invalidation inv = Invalidation::Init(kObjectId_, i, "payload"); in TEST_F()
143 Invalidation inv1 = Invalidation::Init(kObjectId_, 10, "payload"); in TEST_F()
144 Invalidation inv2 = Invalidation::InitUnknownVersion(kObjectId_); in TEST_F()
[all …]
Dsingle_object_invalidation_set_unittest.cc28 Invalidation inv0 = Invalidation::InitUnknownVersion(kId); in TEST_F()
29 Invalidation inv1 = Invalidation::Init(kId, 1, "one"); in TEST_F()
30 Invalidation inv2 = Invalidation::Init(kId, 5, "five"); in TEST_F()
65 list.Insert(Invalidation::Init(kId, 1, "one")); in TEST_F()
68 list.Insert(Invalidation::InitUnknownVersion(kId)); in TEST_F()
87 list.Insert(Invalidation::Init(kId, 1, "one")); in TEST_F()
98 list.Insert(Invalidation::Init(kId, 1, "one")); in TEST_F()
99 list.Insert(Invalidation::InitUnknownVersion(kId)); in TEST_F()
Dinvalidator_test_template.h138 invalidation_map.Insert(Invalidation::Init(this->id1, 1, "1")); in TYPED_TEST_P()
139 invalidation_map.Insert(Invalidation::Init(this->id2, 2, "2")); in TYPED_TEST_P()
140 invalidation_map.Insert(Invalidation::Init(this->id3, 3, "3")); in TYPED_TEST_P()
155 expected_invalidations.Insert(Invalidation::Init(this->id1, 1, "1")); in TYPED_TEST_P()
156 expected_invalidations.Insert(Invalidation::Init(this->id2, 2, "2")); in TYPED_TEST_P()
167 expected_invalidations.Insert(Invalidation::Init(this->id2, 2, "2")); in TYPED_TEST_P()
168 expected_invalidations.Insert(Invalidation::Init(this->id3, 3, "3")); in TYPED_TEST_P()
240 invalidation_map.Insert(Invalidation::Init(this->id1, 1, "1")); in TYPED_TEST_P()
241 invalidation_map.Insert(Invalidation::Init(this->id2, 2, "2")); in TYPED_TEST_P()
242 invalidation_map.Insert(Invalidation::Init(this->id3, 3, "3")); in TYPED_TEST_P()
[all …]
Dmock_ack_handler.h18 class Invalidation; variable
31 void RegisterInvalidation(Invalidation* invalidation);
35 void RegisterUnsentInvalidation(Invalidation* invalidation);
39 bool IsUnacked(const Invalidation& invalidation) const;
42 bool IsUnsent(const Invalidation& invalidation) const;
53 typedef std::vector<syncer::Invalidation> InvalidationVector;
Dmock_ack_handler.cc16 bool operator()(const syncer::Invalidation& invalidation) const;
25 const syncer::Invalidation& invalidation) const { in operator ()()
35 void MockAckHandler::RegisterInvalidation(Invalidation* invalidation) { in RegisterInvalidation()
40 void MockAckHandler::RegisterUnsentInvalidation(Invalidation* invalidation) { in RegisterUnsentInvalidation()
44 bool MockAckHandler::IsUnacked(const Invalidation& invalidation) const { in IsUnacked()
53 bool MockAckHandler::IsUnsent(const Invalidation& invalidation) const { in IsUnsent()
Dsingle_object_invalidation_set.cc16 void SingleObjectInvalidationSet::Insert(const Invalidation& invalidation) { in Insert()
45 bool operator()(const Invalidation& inv1, const Invalidation& inv2) { in operator ()()
80 const Invalidation& SingleObjectInvalidationSet::back() const { in back()
101 scoped_ptr<Invalidation> invalidation = Invalidation::InitFromValue(*dict); in ResetFromValue()
Dinvalidation_util.h24 class Invalidation; variable
35 class Invalidation; variable
43 bool operator()(const syncer::Invalidation& a,
44 const syncer::Invalidation& b) const;
69 const invalidation::Invalidation& invalidation);
Dunacked_invalidation_set.cc37 const Invalidation& invalidation) { in Add()
58 Invalidation inv(*it); in ExportInvalidations()
110 Invalidation unknown_version = Invalidation::InitFromDroppedInvalidation(*it); in Drop()
172 scoped_ptr<Invalidation> invalidation = Invalidation::InitFromValue(*dict); in ResetListFromValue()
200 Invalidation unknown_version = Invalidation::InitUnknownVersion(id); in Truncate()
Dsingle_object_invalidation_set.h28 typedef std::set<Invalidation, InvalidationVersionLessThan> InvalidationsSet;
35 void Insert(const Invalidation& invalidation);
52 const Invalidation& back() const;
Dobject_id_invalidation_map.cc16 invalidate_all.Insert(Invalidation::InitUnknownVersion(*it)); in InvalidateAll()
37 void ObjectIdInvalidationMap::Insert(const Invalidation& invalidation) { in Insert()
62 std::vector<syncer::Invalidation>* out) const { in GetAllInvalidations()
101 scoped_ptr<Invalidation> invalidation = Invalidation::InitFromValue(*dict); in ResetFromValue()
Dsync_invalidation_listener.cc122 const invalidation::Invalidation& invalidation, in Invalidate()
139 Invalidation inv = Invalidation::Init(id, invalidation.version(), payload); in Invalidate()
156 Invalidation unknown_version = Invalidation::InitUnknownVersion(object_id); in InvalidateUnknownVersion()
176 Invalidation unknown_version = Invalidation::InitUnknownVersion(*it); in InvalidateAll()
Dobject_id_invalidation_map.h39 void Insert(const Invalidation& invalidation);
50 void GetAllInvalidations(std::vector<syncer::Invalidation>* out) const;
Dinvalidation_util.cc32 const Invalidation& a, in operator ()()
33 const Invalidation& b) const { in operator ()()
122 const invalidation::Invalidation& invalidation) { in InvalidationToString()
Dunacked_invalidation_set.h43 void Add(const Invalidation& invalidation);
97 typedef std::set<Invalidation, InvalidationVersionLessThan> InvalidationsSet;
/external/chromium_org/chrome/browser/extensions/api/push_messaging/
Dpush_messaging_invalidation_handler_unittest.cc108 syncer::Invalidation::Init( in TEST_F()
116 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion( in TEST_F()
132 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion( in TEST_F()
137 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion( in TEST_F()
142 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion( in TEST_F()
147 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion( in TEST_F()
152 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion( in TEST_F()
157 invalidation_map.Insert(syncer::Invalidation::InitUnknownVersion( in TEST_F()
175 map1.Insert(syncer::Invalidation::Init(id0, 5, "5")); in TEST_F()
182 map2.Insert(syncer::Invalidation::InitUnknownVersion(id0)); in TEST_F()
[all …]
/external/chromium_org/chrome/browser/invalidation/
Dinvalidation_service_test_template.h126 invalidation_map.Insert(syncer::Invalidation::Init(this->id1, 1, "1")); in TYPED_TEST_P()
127 invalidation_map.Insert(syncer::Invalidation::Init(this->id2, 2, "2")); in TYPED_TEST_P()
128 invalidation_map.Insert(syncer::Invalidation::Init(this->id3, 3, "3")); in TYPED_TEST_P()
144 expected_invalidations.Insert(syncer::Invalidation::Init(this->id1, 1, "1")); in TYPED_TEST_P()
145 expected_invalidations.Insert(syncer::Invalidation::Init(this->id2, 2, "2")); in TYPED_TEST_P()
156 expected_invalidations.Insert(syncer::Invalidation::Init(this->id2, 2, "2")); in TYPED_TEST_P()
157 expected_invalidations.Insert(syncer::Invalidation::Init(this->id3, 3, "3")); in TYPED_TEST_P()
233 invalidation_map.Insert(syncer::Invalidation::Init(this->id1, 1, "1")); in TYPED_TEST_P()
234 invalidation_map.Insert(syncer::Invalidation::Init(this->id2, 2, "2")); in TYPED_TEST_P()
235 invalidation_map.Insert(syncer::Invalidation::Init(this->id3, 3, "3")); in TYPED_TEST_P()
[all …]
Dinvalidator_storage_unittest.cc80 syncer::Invalidation unknown_version_inv = in TEST_F()
81 syncer::Invalidation::InitUnknownVersion(id1); in TEST_F()
82 syncer::Invalidation known_version_inv = in TEST_F()
83 syncer::Invalidation::Init(id1, 314, "payload"); in TEST_F()
89 syncer::Invalidation obj2_inv = in TEST_F()
90 syncer::Invalidation::Init(id2, 1234, "payl\0ad\xff"); in TEST_F()
Dfake_invalidation_service.h17 class Invalidation; variable
46 void EmitInvalidationForTest(const syncer::Invalidation& invalidation);
/external/chromium_org/chrome/browser/policy/cloud/
Dcloud_policy_invalidator_unittest.cc111 syncer::Invalidation FireInvalidation(
118 syncer::Invalidation FireUnknownVersionInvalidation(PolicyObject object);
132 bool IsUnsent(const syncer::Invalidation& invalidation);
140 bool IsInvalidationAcknowledged(const syncer::Invalidation& invalidation);
303 syncer::Invalidation CloudPolicyInvalidatorTest::FireInvalidation( in FireInvalidation()
307 syncer::Invalidation invalidation = syncer::Invalidation::Init( in FireInvalidation()
315 syncer::Invalidation CloudPolicyInvalidatorTest::FireUnknownVersionInvalidation( in FireUnknownVersionInvalidation()
317 syncer::Invalidation invalidation = syncer::Invalidation::InitUnknownVersion( in FireUnknownVersionInvalidation()
341 const syncer::Invalidation& invalidation) { in IsUnsent()
355 const syncer::Invalidation& invalidation) { in IsInvalidationAcknowledged()
[all …]
/external/chromium_org/third_party/cacheinvalidation/
DREADME.chromium1 Name: Google Cache Invalidation API
10 This is the API to talk to the Google Cache Invalidation service.
15 Note: If you are rolling forward the Cache Invalidation API version, and want to

12