aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlex Vakulenko <avakulenko@google.com>2016-04-19 15:41:19 -0700
committerAlex Vakulenko <avakulenko@google.com>2016-04-20 21:50:14 +0000
commit22ca81ad3a68f5bc93bcce2abd4c37f3dae55bfd (patch)
tree83fc3123b8f3b6a173dfde8dbb099b9d15199232 /include
parent3f59975c93597ead7c6574ff780ed2acf6dc8d02 (diff)
downloadlibweave-22ca81ad3a68f5bc93bcce2abd4c37f3dae55bfd.tar.gz
libweave: Clean up code
Fixed minor issues like misspelling in comments, formatting. Removed unused function prototypes and make sure function declarations match exactly the implementations. Change-Id: Ie30342657c0c22fa19b1546321400cc65d0e028d Reviewed-on: https://weave-review.googlesource.com/3230 Reviewed-by: Robert Ginda <rginda@google.com>
Diffstat (limited to 'include')
-rw-r--r--include/weave/provider/http_client.h2
-rw-r--r--include/weave/provider/network.h2
-rw-r--r--include/weave/provider/test/fake_task_runner.h4
3 files changed, 2 insertions, 6 deletions
diff --git a/include/weave/provider/http_client.h b/include/weave/provider/http_client.h
index bf01022..5a53374 100644
--- a/include/weave/provider/http_client.h
+++ b/include/weave/provider/http_client.h
@@ -48,7 +48,7 @@ namespace provider {
// request is complete), callback should be invokes on the same thread.
// Callback should never be called before SendRequest(...) returns.
//
-// When invoking callback function, user should privide implementation
+// When invoking callback function, user should provide implementation
// of the Response interface. For example, the following could be used as a
// simple implementation:
// struct ResponseImpl : public provider::HttpClient::Response {
diff --git a/include/weave/provider/network.h b/include/weave/provider/network.h
index a73b75e..2be2dfb 100644
--- a/include/weave/provider/network.h
+++ b/include/weave/provider/network.h
@@ -20,7 +20,7 @@ namespace provider {
// sockets, implementing XMPP push notifications channel.
//
// There are 2 main parts of this interface. One part is used to check network
-// connection status and signup for notification if connection status changes.
+// connection status and sign up for notification if connection status changes.
// Implementation of GetConnectionState() should return current network
// connection state (enum Network::State).
// Implementation of AddConnectionChangedCallback() should remember callback
diff --git a/include/weave/provider/test/fake_task_runner.h b/include/weave/provider/test/fake_task_runner.h
index 4080072..9476d02 100644
--- a/include/weave/provider/test/fake_task_runner.h
+++ b/include/weave/provider/test/fake_task_runner.h
@@ -34,10 +34,6 @@ class FakeTaskRunner : public TaskRunner {
size_t GetTaskQueueSize() const;
private:
- void SaveTask(const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay);
-
using QueueItem = std::pair<std::pair<base::Time, size_t>, base::Closure>;
struct Greater {