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

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

Issue 1970833002: Fix include path for moved thread_task_runner_handle.h header in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a1_move_task_runner_handle
Patch Set: merge up to r393009 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_queue_in_memory_store.h" 5 #include "components/offline_pages/background/request_queue_in_memory_store.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/test/test_simple_task_runner.h" 10 #include "base/test/test_simple_task_runner.h"
11 #include "base/thread_task_runner_handle.h" 11 #include "base/threading/thread_task_runner_handle.h"
12 #include "components/offline_pages/background/request_queue_store.h" 12 #include "components/offline_pages/background/request_queue_store.h"
13 #include "components/offline_pages/background/save_page_request.h" 13 #include "components/offline_pages/background/save_page_request.h"
14 #include "testing/gtest/include/gtest/gtest.h" 14 #include "testing/gtest/include/gtest/gtest.h"
15 15
16 namespace offline_pages { 16 namespace offline_pages {
17 17
18 using UpdateStatus = RequestQueueStore::UpdateStatus; 18 using UpdateStatus = RequestQueueStore::UpdateStatus;
19 19
20 namespace { 20 namespace {
21 const int64_t kRequestId = 42; 21 const int64_t kRequestId = 42;
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 233
234 store()->Reset(base::Bind(&RequestQueueInMemoryStoreTest::ResetDone, 234 store()->Reset(base::Bind(&RequestQueueInMemoryStoreTest::ResetDone,
235 base::Unretained(this))); 235 base::Unretained(this)));
236 ASSERT_EQ(LastResult::kNone, last_result()); 236 ASSERT_EQ(LastResult::kNone, last_result());
237 PumpLoop(); 237 PumpLoop();
238 ASSERT_EQ(LastResult::kTrue, last_result()); 238 ASSERT_EQ(LastResult::kTrue, last_result());
239 ASSERT_EQ(0ul, last_requests().size()); 239 ASSERT_EQ(0ul, last_requests().size());
240 } 240 }
241 241
242 } // offline_pages 242 } // offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698