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

Side by Side Diff: components/offline_pages/core/background/mark_attempt_completed_task_unittest.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: rebase Created 4 years 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/mark_attempt_completed_task.h" 5 #include "components/offline_pages/core/background/mark_attempt_completed_task.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/threading/thread_task_runner_handle.h" 12 #include "base/threading/thread_task_runner_handle.h"
13 #include "components/offline_pages/background/request_queue_in_memory_store.h" 13 #include "components/offline_pages/core/background/request_queue_in_memory_store .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 namespace { 17 namespace {
18 const int64_t kRequestId1 = 42; 18 const int64_t kRequestId1 = 42;
19 const int64_t kRequestId2 = 44; 19 const int64_t kRequestId2 = 44;
20 const GURL kUrl1("http://example.com"); 20 const GURL kUrl1("http://example.com");
21 const ClientId kClientId1("download", "1234"); 21 const ClientId kClientId1("download", "1234");
22 } // namespace 22 } // namespace
23 23
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 PumpLoop(); 123 PumpLoop();
124 ASSERT_TRUE(last_result()); 124 ASSERT_TRUE(last_result());
125 EXPECT_EQ(1UL, last_result()->item_statuses.size()); 125 EXPECT_EQ(1UL, last_result()->item_statuses.size());
126 EXPECT_EQ(kRequestId2, last_result()->item_statuses.at(0).first); 126 EXPECT_EQ(kRequestId2, last_result()->item_statuses.at(0).first);
127 EXPECT_EQ(ItemActionStatus::NOT_FOUND, 127 EXPECT_EQ(ItemActionStatus::NOT_FOUND,
128 last_result()->item_statuses.at(0).second); 128 last_result()->item_statuses.at(0).second);
129 EXPECT_EQ(0UL, last_result()->updated_items.size()); 129 EXPECT_EQ(0UL, last_result()->updated_items.size());
130 } 130 }
131 131
132 } // namespace offline_pages 132 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698