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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
ghcooper@gmail.com [Fri, 6 Jan 2012 22:20:01 +0000 (22:20 +0000)]
test fixes
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@157
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Fri, 6 Jan 2012 22:07:05 +0000 (22:07 +0000)]
NOLINT for casts
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@156
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Fri, 6 Jan 2012 02:06:19 +0000 (02:06 +0000)]
add ClientType TEST, needed by protocol handler test
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@155
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Fri, 6 Jan 2012 01:54:40 +0000 (01:54 +0000)]
get TestLogger to compile in Chrome
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@154
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Fri, 6 Jan 2012 01:53:30 +0000 (01:53 +0000)]
Chrome compilation fixes:
- replace use of Partially with AllOf(Property(...), ...)
- replace use of WhenDeserialized with WhenDeserializedAs
- replace int loop variables with uint32
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@153
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Wed, 4 Jan 2012 22:10:48 +0000 (22:10 +0000)]
make all system resource components inherit from ResourceComponent
add BasicSystemResources
add unit tests for protocol handler
fix a few minor bugs
replace uses of deterministic scheduler's ModifyTime and RunReadyTasks with PassTime to more closely approximate a real scheduler
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@152
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Wed, 4 Jan 2012 00:03:07 +0000 (00:03 +0000)]
delays first info message after a persistent restart by 2 seconds
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@151
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Thu, 29 Dec 2011 21:21:30 +0000 (21:21 +0000)]
Fix reg sync exponential backoff not to send multiple messages.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@150
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Wed, 28 Dec 2011 23:10:04 +0000 (23:10 +0000)]
- Make ExponentialBackoffDelayGenerator::Reset take no arguments (reset to initial_max_delay).
- Add in_retry_mode to ExponentialBackoffDelayGenerator.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@149
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Wed, 28 Dec 2011 22:28:35 +0000 (22:28 +0000)]
* Make the heartbeat message respect exponential backoff when it is sent due to registration sync problems.
* Fix to check that a registration summary has been received before setting it in the registration manager.
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@148
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Wed, 14 Dec 2011 22:23:40 +0000 (22:23 +0000)]
add client gateway proto definition
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@147
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Mon, 26 Sep 2011 23:12:43 +0000 (23:12 +0000)]
fix licenses on a couple of files
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@143
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Tue, 2 Aug 2011 19:22:50 +0000 (19:22 +0000)]
have ticl v2 schedule heartbeat task following startup from persistence
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@135
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Wed, 20 Jul 2011 22:35:47 +0000 (22:35 +0000)]
suppress sending of registrations when server summary is unknown
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@134
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Wed, 20 Jul 2011 00:02:58 +0000 (00:02 +0000)]
add missing ToString specializations
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@132
1cc9d426-c294-39be-ba72-
c0199ca0f247
ghcooper@gmail.com [Wed, 20 Jul 2011 00:00:08 +0000 (00:00 +0000)]
Fix spelling mistake in InfoMessage proto
git-svn-id: http://google-cache-invalidation-api.googlecode.com/svn/trunk/src/google@131
1cc9d426-c294-39be-ba72-
c0199ca0f247