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

Side by Side Diff: components/sync/driver/sync_stopped_reporter_unittest.cc

Issue 2388973002: [Sync] Removing duplicate includes, part 2. (Closed)
Patch Set: Update for Max's comments. Created 4 years, 2 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/sync/driver/sync_stopped_reporter.h" 5 #include "components/sync/driver/sync_stopped_reporter.h"
6 6
7 #include <string>
8
9 #include "base/macros.h"
10 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
11 #include "base/run_loop.h" 8 #include "base/run_loop.h"
12 #include "base/test/test_simple_task_runner.h" 9 #include "base/test/test_simple_task_runner.h"
13 #include "base/threading/non_thread_safe.h" 10 #include "base/threading/non_thread_safe.h"
14 #include "components/sync/protocol/sync.pb.h" 11 #include "components/sync/protocol/sync.pb.h"
15 #include "net/http/http_status_code.h" 12 #include "net/http/http_status_code.h"
16 #include "net/url_request/test_url_fetcher_factory.h" 13 #include "net/url_request/test_url_fetcher_factory.h"
17 #include "net/url_request/url_request_test_util.h" 14 #include "net/url_request/url_request_test_util.h"
18 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
19 #include "url/gurl.h"
20 16
21 namespace syncer { 17 namespace syncer {
22 18
23 const char kTestURL[] = "http://chromium.org/test"; 19 const char kTestURL[] = "http://chromium.org/test";
24 const char kTestURLTrailingSlash[] = "http://chromium.org/test/"; 20 const char kTestURLTrailingSlash[] = "http://chromium.org/test/";
25 const char kEventURL[] = "http://chromium.org/test/event"; 21 const char kEventURL[] = "http://chromium.org/test/event";
26 22
27 const char kTestUserAgent[] = "the_fifth_element"; 23 const char kTestUserAgent[] = "the_fifth_element";
28 const char kAuthToken[] = "multipass"; 24 const char kAuthToken[] = "multipass";
29 const char kCacheGuid[] = "leeloo"; 25 const char kCacheGuid[] = "leeloo";
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 193
198 // Begin request. 194 // Begin request.
199 ssr.ReportSyncStopped(kAuthToken, kCacheGuid, kBirthday); 195 ssr.ReportSyncStopped(kAuthToken, kCacheGuid, kBirthday);
200 196
201 // Trigger the timeout. 197 // Trigger the timeout.
202 ASSERT_TRUE(task_runner->HasPendingTask()); 198 ASSERT_TRUE(task_runner->HasPendingTask());
203 task_runner->RunPendingTasks(); 199 task_runner->RunPendingTasks();
204 } 200 }
205 201
206 } // namespace syncer 202 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/sync_prefs_unittest.cc ('k') | components/sync/driver/system_encryptor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698