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

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

Issue 2083783002: [Offline pages] Renaming the file with request queue store tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « components/offline_pages/background/request_queue_in_memory_store_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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/threading/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_in_memory_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;
22 const GURL kUrl("http://example.com"); 22 const GURL kUrl("http://example.com");
(...skipping 210 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::RESULT_NONE, last_result()); 236 ASSERT_EQ(LastResult::RESULT_NONE, last_result());
237 PumpLoop(); 237 PumpLoop();
238 ASSERT_EQ(LastResult::RESULT_TRUE, last_result()); 238 ASSERT_EQ(LastResult::RESULT_TRUE, 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
« no previous file with comments | « components/offline_pages/background/request_queue_in_memory_store_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698