external/google-cache-invalidation-api/src/google.git
3 months agorevert r333: Chromium is not yet ready to pull current versions of gtest/gmock, since... master
ghcooper@gmail.com [Thu, 17 Jul 2014 17:53:10 +0000 (17:53 +0000)]
revert r333: Chromium is not yet ready to pull current versions of gtest/gmock, since they require C++11

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@335 1cc9d426-c294-39be-ba72-c0199ca0f247

3 months agoAllow Chromium to build with more MSVC warnings enabled.
ghcooper@gmail.com [Thu, 17 Jul 2014 00:03:25 +0000 (00:03 +0000)]
Allow Chromium to build with more MSVC warnings enabled.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@334 1cc9d426-c294-39be-ba72-c0199ca0f247

3 months agoCleanup: Use ::testing::{tuple,get,make_tuple} when dealing with tuples in the contex...
ghcooper@gmail.com [Thu, 17 Jul 2014 00:00:44 +0000 (00:00 +0000)]
Cleanup: Use ::testing::{tuple,get,make_tuple} when dealing with tuples in the context of GTest and GMock.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@333 1cc9d426-c294-39be-ba72-c0199ca0f247

3 months agoCleaning up remaining misuses of "squelch" in our code base.
ghcooper@gmail.com [Wed, 16 Jul 2014 23:47:17 +0000 (23:47 +0000)]
Cleaning up remaining misuses of "squelch" in our code base.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@332 1cc9d426-c294-39be-ba72-c0199ca0f247

6 months agoAdding new client types for Chrome Sync GCM.
colinmeek@gmail.com [Fri, 4 Apr 2014 16:45:47 +0000 (16:45 +0000)]
Adding new client types for Chrome Sync GCM.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@331 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoadd lite runtime option to android_channel.proto
ghcooper@gmail.com [Fri, 28 Feb 2014 20:35:08 +0000 (20:35 +0000)]
add lite runtime option to android_channel.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@330 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agochange protocol buffer compiler options in channel_common.proto
ghcooper@gmail.com [Wed, 26 Feb 2014 19:05:14 +0000 (19:05 +0000)]
change protocol buffer compiler options in channel_common.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@329 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoAdding copies of protos for use in C++ cache invalidation.
colinmeek@gmail.com [Tue, 25 Feb 2014 23:49:22 +0000 (23:49 +0000)]
Adding copies of protos for use in C++ cache invalidation.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@328 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoupdate build datestamp
ghcooper@gmail.com [Wed, 5 Feb 2014 22:14:23 +0000 (22:14 +0000)]
update build datestamp

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@326 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoRevert r322 since Chrome does not yet support unique_ptr
ghcooper@gmail.com [Wed, 5 Feb 2014 21:32:16 +0000 (21:32 +0000)]
Revert r322 since Chrome does not yet support unique_ptr

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@325 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoAdd channel_common.proto
ghcooper@gmail.com [Wed, 5 Feb 2014 01:41:03 +0000 (01:41 +0000)]
Add channel_common.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@324 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoremove unused mock methods
ghcooper@gmail.com [Wed, 5 Feb 2014 01:33:41 +0000 (01:33 +0000)]
remove unused mock methods

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@323 1cc9d426-c294-39be-ba72-c0199ca0f247

8 months agoCleanup: Convert from scoped_ptr to std::unique_ptr.
ghcooper@gmail.com [Wed, 5 Feb 2014 01:22:39 +0000 (01:22 +0000)]
Cleanup: Convert from scoped_ptr to std::unique_ptr.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@322 1cc9d426-c294-39be-ba72-c0199ca0f247

14 months agoupdate build timestamp for 8/2013 release
ghcooper@gmail.com [Mon, 12 Aug 2013 20:32:09 +0000 (20:32 +0000)]
update build timestamp for 8/2013 release

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@312 1cc9d426-c294-39be-ba72-c0199ca0f247

14 months agosplit ::using declarations for RepeatedField into a separate header
ghcooper@gmail.com [Mon, 12 Aug 2013 20:15:37 +0000 (20:15 +0000)]
split ::using declarations for RepeatedField into a separate header

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@311 1cc9d426-c294-39be-ba72-c0199ca0f247

16 months agoupdate version datestamp for June 2013 release
ghcooper@gmail.com [Wed, 5 Jun 2013 17:11:56 +0000 (17:11 +0000)]
update version datestamp for June 2013 release

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@307 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoroll forward now that Chrome change has been committed
ghcooper@gmail.com [Tue, 7 May 2013 18:17:49 +0000 (18:17 +0000)]
roll forward now that Chrome change has been committed

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@305 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agorollback of recent changes so Android is not blocked on a Chrome commit
ghcooper@gmail.com [Tue, 7 May 2013 04:58:42 +0000 (04:58 +0000)]
rollback of recent changes so Android is not blocked on a Chrome commit

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@304 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agocast RandUint64 to int64 to avoid ambiguous overload
ghcooper@gmail.com [Fri, 3 May 2013 00:36:31 +0000 (00:36 +0000)]
cast RandUint64 to int64 to avoid ambiguous overload

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@302 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoadd a RandUint64, use that instead of multiplying a double by int64_max
ghcooper@gmail.com [Thu, 2 May 2013 23:18:50 +0000 (23:18 +0000)]
add a RandUint64, use that instead of multiplying a double by int64_max

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@301 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoUpdate build datestamp
ghcooper@gmail.com [Wed, 1 May 2013 18:35:43 +0000 (18:35 +0000)]
Update build datestamp

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@300 1cc9d426-c294-39be-ba72-c0199ca0f247

17 months agoChange the nonce to be a randomly generated string rather than the time in milliseconds.
ghcooper@gmail.com [Wed, 1 May 2013 18:28:57 +0000 (18:28 +0000)]
Change the nonce to be a randomly generated string rather than the time in milliseconds.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@299 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoadd build_constants.h and use it for the client minor version
ghcooper@gmail.com [Wed, 3 Apr 2013 23:02:43 +0000 (23:02 +0000)]
add build_constants.h and use it for the client minor version

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@296 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoRemoving unused includes
ghcooper@gmail.com [Mon, 1 Apr 2013 22:19:50 +0000 (22:19 +0000)]
Removing unused includes

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@295 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoReplace calls to scoped_ptr(NULL) with calls to scoped_ptr().
ghcooper@gmail.com [Mon, 1 Apr 2013 22:14:39 +0000 (22:14 +0000)]
Replace calls to scoped_ptr(NULL) with calls to scoped_ptr().

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@294 1cc9d426-c294-39be-ba72-c0199ca0f247

18 months agoRemove start-related preconditions check from InvalidationClientCore. Issue a
ghcooper@gmail.com [Mon, 1 Apr 2013 22:01:12 +0000 (22:01 +0000)]
Remove start-related preconditions check from InvalidationClientCore. Issue a
transient registration failure if registrations are requested before the client
is ready.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@293 1cc9d426-c294-39be-ba72-c0199ca0f247

19 months agoAdding client type enum value for Chrome sync iOS client.
colinmeek@gmail.com [Thu, 21 Mar 2013 00:01:26 +0000 (00:01 +0000)]
Adding client type enum value for Chrome sync iOS client.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@292 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoSpecify the map comparator (ProtoCompareLess) when declaring an iterator
ghcooper@gmail.com [Wed, 27 Feb 2013 19:19:49 +0000 (19:19 +0000)]
Specify the map comparator (ProtoCompareLess) when declaring an iterator

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@284 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoMove new Ticl factory methods into a class to avoid overloading the old names.
ghcooper@gmail.com [Wed, 27 Feb 2013 03:57:40 +0000 (03:57 +0000)]
Move new Ticl factory methods into a class to avoid overloading the old names.

Also capitalize a couple of function names in the test to conform to C++ style.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@283 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoRemove references to deprecated proto field
ghcooper@gmail.com [Tue, 26 Feb 2013 02:03:34 +0000 (02:03 +0000)]
Remove references to deprecated proto field

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@282 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoAdd tests for the InvalidationClientFactory.
ghcooper@gmail.com [Mon, 25 Feb 2013 21:50:20 +0000 (21:50 +0000)]
Add tests for the InvalidationClientFactory.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@281 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoDo not issue registration-success upcalls until the server has actually responded.
ghcooper@gmail.com [Mon, 25 Feb 2013 21:32:29 +0000 (21:32 +0000)]
Do not issue registration-success upcalls until the server has actually responded.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@280 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoImplement a TricklesClientFactory:
ghcooper@gmail.com [Mon, 25 Feb 2013 20:58:49 +0000 (20:58 +0000)]
Implement a TricklesClientFactory:
- ClientConfigP has a new allow_suppression field which is set to false by the InvalidationClientFactory and to true by the new TricklesClientFactory.
- If suppression is allowed (the default), then restarted invalidation messages result in an invalidate upcall in InvalidationClientCore.
- If suppression is not allowed, then restarted invalidation messages result in invalidateUnknownVersion.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@279 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoDeprecate bridge_arrival_time_ms in InvalidationP
ghcooper@gmail.com [Mon, 25 Feb 2013 20:52:11 +0000 (20:52 +0000)]
Deprecate bridge_arrival_time_ms in InvalidationP

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@278 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoIncrease client minor version to 3.
ghcooper@gmail.com [Mon, 25 Feb 2013 20:46:26 +0000 (20:46 +0000)]
Increase client minor version to 3.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@277 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoFixes Ticl session token logic to allow upgrading of session tokens.
ghcooper@gmail.com [Mon, 25 Feb 2013 20:45:05 +0000 (20:45 +0000)]
Fixes Ticl session token logic to allow upgrading of session tokens.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@276 1cc9d426-c294-39be-ba72-c0199ca0f247

20 months agoAdd client type to client header as an optional field.
ghcooper@gmail.com [Mon, 25 Feb 2013 20:41:17 +0000 (20:41 +0000)]
Add client type to client header as an optional field.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@275 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoRemove the three argument overload with isTrickleRestart-- ambiguous implicit convers...
ghcooper@gmail.com [Thu, 17 Jan 2013 18:24:03 +0000 (18:24 +0000)]
Remove the three argument overload with isTrickleRestart-- ambiguous implicit conversion of (char *) to bool rather than string& creates unexpected results.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@261 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoadd is_trickle_restart boolean to InvalidationP
ghcooper@gmail.com [Thu, 17 Jan 2013 01:46:54 +0000 (01:46 +0000)]
add is_trickle_restart boolean to InvalidationP

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@260 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoadd RunStateP to client.proto
ghcooper@gmail.com [Thu, 17 Jan 2013 01:34:42 +0000 (01:34 +0000)]
add RunStateP to client.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@259 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoAdd an isTrickleRestart flag to the Invalidation class. The restarted flag is
ghcooper@gmail.com [Thu, 17 Jan 2013 01:11:26 +0000 (01:11 +0000)]
Add an isTrickleRestart flag to the Invalidation class.  The restarted flag is
documented for internal use only. The flag is required on construction and
preserved when converting to and from InvalidationP.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@258 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agodo not stop the Ticl after an AUTH_ERROR error message upcall to the listener
ghcooper@gmail.com [Thu, 17 Jan 2013 01:06:54 +0000 (01:06 +0000)]
do not stop the Ticl after an AUTH_ERROR error message upcall to the listener

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@257 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoeliminate the enum in RunState and use the proto enum from RunStateP instead
ghcooper@gmail.com [Thu, 17 Jan 2013 01:02:18 +0000 (01:02 +0000)]
eliminate the enum in RunState and use the proto enum from RunStateP instead

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@256 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoPorts some Java changes to the C++ Ticl.
ghcooper@gmail.com [Thu, 17 Jan 2013 00:51:27 +0000 (00:51 +0000)]
Ports some Java changes to the C++ Ticl.

Specifically, moves the batching task out of the protocol handler and into
the invalidation client core.

Original change description:

Implements (un)marshalling of in-memory Ticl state to protocol buffers.

This CL defines protocol buffers to represent various parts of the Ticl
in-memory state and adds code to the Java Ticl to (un)marshall to and from
them. Additionally, as part of this change, it completes the transition of
ProtocolHandler to a passive class by moving the recurring task for batching
from ProtocolHandler to InvalidationClientCore.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@255 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agofix const-& inconsistency in MessageCallback
ghcooper@gmail.com [Thu, 17 Jan 2013 00:39:00 +0000 (00:39 +0000)]
fix const-& inconsistency in MessageCallback

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@254 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoPorts Java Ticl refactoring to C++. This CL also fixes a couple minor nits
ghcooper@gmail.com [Thu, 17 Jan 2013 00:30:42 +0000 (00:30 +0000)]
Ports Java Ticl refactoring to C++. This CL also fixes a couple minor nits
discovered in the Ticls while doing the porting.

Original change description:

Refactors the Java Ticl to enable the new Android design:

  1. Makes ProtocolHandler a less-active class. Messages are now received by
     InvalidationClientCore, which makes a call against ProtocolHandler to
     parse the message and receives back a parsed-messaged object in response.

  2. ProtocolHandler batching functionality is moved into a nested subclass to
     be more-easily persisted.

  3. InvalidationClientImpl is split into two classes. InvalidationClientCore
     and InvalidationClientImpl. InvalidationClientCore is the bulk of the old
     InvalidationClientImpl, containing all of the core logic involved in the
     Ticl, but no concurrency control. InvalidationClientImpl contains an
     InvalidationClientCore and adds the concurrency control. Specifically, the
     model is that ICI can make assertions about which thread it is executing on,
     and it can use schedulers to schedule events in the future or to enqueue something
     onto the listener thread, but it never does a schedule(NO_DELAY) on the internal
     thread. It is the responsibility of the caller to ensure that such calls are made
     on the internal thread.

This CL has a large number of lines changed because of the
InvalidationClientImpl / InvalidationClientCore split; it is not actually that
big a change in terms of line count.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@253 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoreplace IntToString with SimpleItoa
ghcooper@gmail.com [Wed, 16 Jan 2013 22:42:03 +0000 (22:42 +0000)]
replace IntToString with SimpleItoa

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@252 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agocode for tracking invalidation delivery time through the system
ghcooper@gmail.com [Tue, 15 Jan 2013 21:50:11 +0000 (21:50 +0000)]
code for tracking invalidation delivery time through the system

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@251 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agohave the Ticl send a heartbeat if the network disconnects and reconnects, unless
ghcooper@gmail.com [Tue, 15 Jan 2013 21:34:36 +0000 (21:34 +0000)]
have the Ticl send a heartbeat if the network disconnects and reconnects, unless
it sent a message recently

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@250 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agoadd last_message_send_time_ms to client.proto and channel_supports_offline_delivery...
ghcooper@gmail.com [Tue, 15 Jan 2013 21:29:44 +0000 (21:29 +0000)]
add last_message_send_time_ms to client.proto and channel_supports_offline_delivery to client_protocol.proto

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@249 1cc9d426-c294-39be-ba72-c0199ca0f247

21 months agohave only one message-sending rate limit (of 3 messages in 5 seconds)
ghcooper@gmail.com [Tue, 15 Jan 2013 19:39:45 +0000 (19:39 +0000)]
have only one message-sending rate limit (of 3 messages in 5 seconds)

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@248 1cc9d426-c294-39be-ba72-c0199ca0f247

22 months agoremove references to unused headers and types not available in the lite protobuf...
ghcooper@gmail.com [Tue, 11 Dec 2012 00:14:04 +0000 (00:14 +0000)]
remove references to unused headers and types not available in the lite protobuf runtime

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@247 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agorevert r239, since it causes problems for the android build
ghcooper@gmail.com [Tue, 23 Oct 2012 19:36:12 +0000 (19:36 +0000)]
revert r239, since it causes problems for the android build

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@242 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoadd a couple of object source constants
ghcooper@gmail.com [Fri, 19 Oct 2012 00:56:50 +0000 (00:56 +0000)]
add a couple of object source constants

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@241 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoGateway related protos
ghcooper@gmail.com [Tue, 16 Oct 2012 00:47:20 +0000 (00:47 +0000)]
Gateway related protos

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@239 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoAdd DEMO client/object types.
danielsmyers [Fri, 12 Oct 2012 21:29:33 +0000 (21:29 +0000)]
Add DEMO client/object types.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@229 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoAdds the CHROME_COMPONENTS enum to the types proto.
danielsmyers [Wed, 1 Aug 2012 01:09:30 +0000 (01:09 +0000)]
Adds the CHROME_COMPONENTS enum to the types proto.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@220 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agomove protos out of v2/; use relative paths for proto imports
ghcooper@gmail.com [Sat, 21 Jul 2012 00:44:14 +0000 (00:44 +0000)]
move protos out of v2/; use relative paths for proto imports

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@219 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agomove the implementation of ownership-transferring callback wrapping into deps/callback.h
ghcooper@gmail.com [Tue, 5 Jun 2012 18:21:50 +0000 (18:21 +0000)]
move the implementation of ownership-transferring callback wrapping into deps/callback.h

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@218 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agofix a potential memory leak by properly transferring ownership of inner callback...
ghcooper@gmail.com [Mon, 4 Jun 2012 17:54:19 +0000 (17:54 +0000)]
fix a potential memory leak by properly transferring ownership of inner callback when constructing an outer closure

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@217 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agotone down logging when the Ticl receives a message with a mismatching token
ghcooper@gmail.com [Mon, 14 May 2012 18:21:05 +0000 (18:21 +0000)]
tone down logging when the Ticl receives a message with a mismatching token

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@213 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agofix bad header path in digest-function.h git-svn
ghcooper@gmail.com [Tue, 13 Mar 2012 17:15:44 +0000 (17:15 +0000)]
fix bad header path in digest-function.h

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@203 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agofix include for invalidation client factory
ghcooper@gmail.com [Sat, 10 Mar 2012 00:20:25 +0000 (00:20 +0000)]
fix include for invalidation client factory

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@202 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoupdate README files
ghcooper@gmail.com [Fri, 9 Mar 2012 21:16:32 +0000 (21:16 +0000)]
update README files

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@201 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoremove unnecessary header inclusion in invalidation-listener.h
ghcooper@gmail.com [Fri, 9 Mar 2012 20:46:44 +0000 (20:46 +0000)]
remove unnecessary header inclusion in invalidation-listener.h

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@200 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agofix a bug where multiplying a TimeDelta by a double would truncate it to zero
ghcooper@gmail.com [Fri, 9 Mar 2012 20:13:50 +0000 (20:13 +0000)]
fix a bug where multiplying a TimeDelta by a double would truncate it to zero

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@199 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoadd comments and local variables to improve readability of protocol handler configura...
ghcooper@gmail.com [Fri, 9 Mar 2012 17:16:23 +0000 (17:16 +0000)]
add comments and local variables to improve readability of protocol handler configuration parameters

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@198 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agosquelch subsequent registration requests for objects on which the client is already...
ghcooper@gmail.com [Fri, 9 Mar 2012 17:13:29 +0000 (17:13 +0000)]
squelch subsequent registration requests for objects on which the client is already registered (and similarly for unregistrations)

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@197 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agostrip the payload from an invalidation before echoing it in an acknowledgment
ghcooper@gmail.com [Fri, 9 Mar 2012 17:10:56 +0000 (17:10 +0000)]
strip the payload from an invalidation before echoing it in an acknowledgment

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@196 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years ago* Moved dependencies to ticl/deps
ghcooper@gmail.com [Fri, 9 Mar 2012 00:25:20 +0000 (00:25 +0000)]
* Moved dependencies to ticl/deps
* Removed v2 in the directory names, except for protos.
* The directory now has deps, impl, include, test

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@195 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years ago* Add a new RecurringTask abstraction to clean up the way scheduling, batching, backo...
ghcooper@gmail.com [Thu, 8 Mar 2012 20:00:18 +0000 (20:00 +0000)]
* Add a new RecurringTask abstraction to clean up the way scheduling, batching, backoff etc are done
  in the Ticl.
* Added support for changing the parameters of exponential backoff on reset.
* Added a SafeStorage abstraction to safely run the callback on the internal scheduler's thread
* Changed ExponentialDelayGenerator to take a maxFactor instead of a maxDelay
* Maintain the next performance counter sent time in the heartbeat task rather than ticl

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@194 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agomove a log statement; change EndOfTestWaitTime; add assertions in unit test
ghcooper@gmail.com [Thu, 8 Mar 2012 19:09:57 +0000 (19:09 +0000)]
move a log statement; change EndOfTestWaitTime; add assertions in unit test

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@193 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agocomment and testing consistency cleanup
ghcooper@gmail.com [Thu, 8 Mar 2012 18:56:59 +0000 (18:56 +0000)]
comment and testing consistency cleanup

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@192 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agochanges for readability
ghcooper@gmail.com [Thu, 8 Mar 2012 18:52:40 +0000 (18:52 +0000)]
changes for readability

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@191 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years ago- Removed dependency on full protobuf library. Client now builds/runs with only...
kylemarvin@gmail.com [Fri, 24 Feb 2012 02:34:37 +0000 (02:34 +0000)]
- Removed dependency on full protobuf library.  Client now builds/runs with only protobuf lite.
- Squelch duplicated registrations.
- Use enum instead of String for Service/Listener intents for faster switching.
- Fix issues in Apache HTTP client usage and refactored AndroidChannel for enhanced testability.
- Change to protobuf-based configuration.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@188 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoexpand README to specify public interfaces
ghcooper@gmail.com [Wed, 1 Feb 2012 20:31:03 +0000 (20:31 +0000)]
expand README to specify public interfaces

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@186 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years ago* Set the smear percent to be zero for unit tests
ghcooper@gmail.com [Mon, 30 Jan 2012 21:40:35 +0000 (21:40 +0000)]
* Set the smear percent to be zero for unit tests
* Add some logging to deterministic scheduler

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@185 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoadd missing field to ToString(RegistrationManagerStateP)
ghcooper@gmail.com [Mon, 30 Jan 2012 19:06:16 +0000 (19:06 +0000)]
add missing field to ToString(RegistrationManagerStateP)
add namespaces and fix formatting of CompareMessages signature

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@184 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agofix compilation problems for chrome
ghcooper@gmail.com [Fri, 27 Jan 2012 18:02:42 +0000 (18:02 +0000)]
fix compilation problems for chrome

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@183 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoChange the Ticl's and Protcool handler's config to be a proto buf
ghcooper@gmail.com [Thu, 26 Jan 2012 23:32:12 +0000 (23:32 +0000)]
Change the Ticl's and Protcool handler's config to be a proto buf
* Removed the invalidation config and protocol config types
* Made the info message test to be a bit stronger to check for the exact config
* Change BaseTiclRegistrarTest::createInvalidationClient to provide a config builder to its subclasses

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@182 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years ago* ExponentialBackoffGenerator and Ticl are now supplied a random number generator...
ghcooper@gmail.com [Thu, 26 Jan 2012 23:16:55 +0000 (23:16 +0000)]
* ExponentialBackoffGenerator and Ticl are now supplied a random number generator in their constructors
* OperationScheduler is provided a smearer in its constructor
* Removed the concept of a default smear precent in the smearer. Instead it is explicitly supplied by the Ticl
* Cleaned up the unit tests by adding outgoing messages and reg summary as instance variables
* Added a test to check that an incoming without a reg summary is not incorrectly interpreted as one with zero registrations
* Changed ServerHeader in the C++ ticl to behave more like the JS/Java ticls - i.e., it exposes a null reg summary if none is received from the server.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@181 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoupdate comments and logging in registration manager
ghcooper@gmail.com [Thu, 26 Jan 2012 23:13:10 +0000 (23:13 +0000)]
update comments and logging in registration manager

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@180 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years ago* Port InvalidationClientImpl tests to C++
ghcooper@gmail.com [Thu, 26 Jan 2012 23:08:00 +0000 (23:08 +0000)]
* Port InvalidationClientImpl tests to C++
* Refactor protocol handler tests to extract useful routines into test-helper
* Added some methods to initialize protos

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@179 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agofix another erroneous const annotation
ghcooper@gmail.com [Fri, 20 Jan 2012 02:01:40 +0000 (02:01 +0000)]
fix another erroneous const annotation

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@177 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoremove superfluous const annotation from primitive type in ProtocolListener::HandleEr...
ghcooper@gmail.com [Wed, 18 Jan 2012 22:47:43 +0000 (22:47 +0000)]
remove superfluous const annotation from primitive type in ProtocolListener::HandleErrorMessage

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@175 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoinclude types.h in protocol-handler_test.cc
ghcooper@gmail.com [Sat, 14 Jan 2012 01:41:56 +0000 (01:41 +0000)]
include types.h in protocol-handler_test.cc

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@173 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agofix erroneous static modifiers on factory methods
ghcooper@gmail.com [Wed, 11 Jan 2012 01:25:48 +0000 (01:25 +0000)]
fix erroneous static modifiers on factory methods

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@172 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoadd a factory to allow creation without explicit instantiation of Config
ghcooper@gmail.com [Tue, 10 Jan 2012 22:33:12 +0000 (22:33 +0000)]
add a factory to allow creation without explicit instantiation of Config

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@170 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoupdate googletest.h path in throttle_test
ghcooper@gmail.com [Mon, 9 Jan 2012 22:23:39 +0000 (22:23 +0000)]
update googletest.h path in throttle_test

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@169 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agodelete v1 code
ghcooper@gmail.com [Mon, 9 Jan 2012 20:05:11 +0000 (20:05 +0000)]
delete v1 code

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@168 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoChange the ApplicationClientIdP proto to include the client type
ghcooper@gmail.com [Sun, 8 Jan 2012 01:42:39 +0000 (01:42 +0000)]
Change the ApplicationClientIdP proto to include the client type

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@167 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoadd check to ensure started at most once
ghcooper@gmail.com [Sun, 8 Jan 2012 01:00:35 +0000 (01:00 +0000)]
add check to ensure started at most once

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@166 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoadd is_transient to config
ghcooper@gmail.com [Sun, 8 Jan 2012 00:45:41 +0000 (00:45 +0000)]
add is_transient to config

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@165 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agomake Stop synchronous
ghcooper@gmail.com [Sun, 8 Jan 2012 00:41:11 +0000 (00:41 +0000)]
make Stop synchronous

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@164 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoEnsure that InformRegisrationStatus is issued even if the reply from the server is...
ghcooper@gmail.com [Sun, 8 Jan 2012 00:38:02 +0000 (00:38 +0000)]
Ensure that InformRegisrationStatus is issued even if the reply from the server is lost.

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@163 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agos/CHECK(false)/LOG(FATAL)
ghcooper@gmail.com [Sun, 8 Jan 2012 00:35:34 +0000 (00:35 +0000)]
s/CHECK(false)/LOG(FATAL)

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@162 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agodocumentation cleanup and registration status message improvement
ghcooper@gmail.com [Sun, 8 Jan 2012 00:24:23 +0000 (00:24 +0000)]
documentation cleanup and registration status message improvement

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@161 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agodocumentation and checks regarding starting and stopping of resources outside ticl
ghcooper@gmail.com [Sun, 8 Jan 2012 00:20:18 +0000 (00:20 +0000)]
documentation and checks regarding starting and stopping of resources outside ticl

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@160 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agofix for DeterministicScheduler::PassTime() of empty interval
ghcooper@gmail.com [Fri, 6 Jan 2012 22:26:48 +0000 (22:26 +0000)]
fix for DeterministicScheduler::PassTime() of empty interval

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@159 1cc9d426-c294-39be-ba72-c0199ca0f247

2 years agoupdate documentation for RegistrationManager::HandleRegistrationStatus
ghcooper@gmail.com [Fri, 6 Jan 2012 22:23:09 +0000 (22:23 +0000)]
update documentation for RegistrationManager::HandleRegistrationStatus

git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@158 1cc9d426-c294-39be-ba72-c0199ca0f247