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

Side by Side Diff: components/offline_pages/background/request_coordinator_unittest.cc

Issue 1974023002: Remove base/thread_task_runner_handle.h dummy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rm duplicate Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/offline_pages/background/request_coordinator.h" 5 #include "components/offline_pages/background/request_coordinator.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/test/test_simple_task_runner.h" 11 #include "base/test/test_simple_task_runner.h"
12 #include "base/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
13 #include "components/offline_pages/background/offliner_factory.h" 13 #include "components/offline_pages/background/offliner_factory.h"
14 #include "components/offline_pages/background/offliner_policy.h" 14 #include "components/offline_pages/background/offliner_policy.h"
15 #include "components/offline_pages/background/request_queue.h" 15 #include "components/offline_pages/background/request_queue.h"
16 #include "components/offline_pages/background/request_queue_in_memory_store.h" 16 #include "components/offline_pages/background/request_queue_in_memory_store.h"
17 #include "components/offline_pages/background/save_page_request.h" 17 #include "components/offline_pages/background/save_page_request.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 namespace offline_pages { 20 namespace offline_pages {
21 21
22 namespace { 22 namespace {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 113
114 // Check the results are as expected. 114 // Check the results are as expected.
115 EXPECT_EQ(1UL, last_requests().size()); 115 EXPECT_EQ(1UL, last_requests().size());
116 EXPECT_EQ(kUrl, last_requests()[0].url()); 116 EXPECT_EQ(kUrl, last_requests()[0].url());
117 EXPECT_EQ(kClientId, last_requests()[0].client_id()); 117 EXPECT_EQ(kClientId, last_requests()[0].client_id());
118 118
119 // TODO(petewil): Expect that the scheduler got notified. 119 // TODO(petewil): Expect that the scheduler got notified.
120 } 120 }
121 121
122 } // namespace offline_pages 122 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698