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

Side by Side Diff: components/sync_driver/sync_stopped_reporter_unittest.cc

Issue 1380693004: [Sync] Fixing sync_driver lint violations and adding PRESUBMIT lint check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cross
Patch Set: Removing lint fixes for revisit files, removing revisit patch dep. Created 5 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
7 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
8 #include "base/run_loop.h" 10 #include "base/run_loop.h"
9 #include "base/test/test_simple_task_runner.h" 11 #include "base/test/test_simple_task_runner.h"
10 #include "base/threading/non_thread_safe.h" 12 #include "base/threading/non_thread_safe.h"
11 #include "net/http/http_status_code.h" 13 #include "net/http/http_status_code.h"
12 #include "net/url_request/test_url_fetcher_factory.h" 14 #include "net/url_request/test_url_fetcher_factory.h"
13 #include "net/url_request/url_request_test_util.h" 15 #include "net/url_request/url_request_test_util.h"
14 #include "sync/protocol/sync.pb.h" 16 #include "sync/protocol/sync.pb.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 #include "url/gurl.h" 18 #include "url/gurl.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 new base::TestSimpleTaskRunner()); 198 new base::TestSimpleTaskRunner());
197 ssr.SetTimerTaskRunnerForTest(task_runner); 199 ssr.SetTimerTaskRunnerForTest(task_runner);
198 200
199 // Begin request. 201 // Begin request.
200 ssr.ReportSyncStopped(kAuthToken, kCacheGuid, kBirthday); 202 ssr.ReportSyncStopped(kAuthToken, kCacheGuid, kBirthday);
201 203
202 // Trigger the timeout. 204 // Trigger the timeout.
203 ASSERT_TRUE(task_runner->HasPendingTask()); 205 ASSERT_TRUE(task_runner->HasPendingTask());
204 task_runner->RunPendingTasks(); 206 task_runner->RunPendingTasks();
205 } 207 }
OLDNEW
« no previous file with comments | « components/sync_driver/sync_stopped_reporter.h ('k') | components/sync_driver/system_encryptor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698