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

Side by Side Diff: chrome/browser/android/offline_pages/offline_page_utils_unittest.cc

Issue 2489443002: Move all components/offline_pages/ files into component/offline_pages/core (Closed)
Patch Set: update Created 4 years, 1 month 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 "chrome/browser/android/offline_pages/offline_page_utils.h" 5 #include "chrome/browser/android/offline_pages/offline_page_utils.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/files/file.h" 12 #include "base/files/file.h"
13 #include "base/files/file_path.h" 13 #include "base/files/file_path.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/run_loop.h" 15 #include "base/run_loop.h"
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "base/test/scoped_feature_list.h" 17 #include "base/test/scoped_feature_list.h"
18 #include "base/threading/thread_task_runner_handle.h" 18 #include "base/threading/thread_task_runner_handle.h"
19 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h" 19 #include "chrome/browser/android/offline_pages/offline_page_model_factory.h"
20 #include "chrome/browser/android/offline_pages/test_offline_page_model_builder.h " 20 #include "chrome/browser/android/offline_pages/test_offline_page_model_builder.h "
21 #include "chrome/common/chrome_constants.h" 21 #include "chrome/common/chrome_constants.h"
22 #include "chrome/test/base/testing_profile.h" 22 #include "chrome/test/base/testing_profile.h"
23 #include "components/offline_pages/client_namespace_constants.h" 23 #include "components/offline_pages/core/client_namespace_constants.h"
24 #include "components/offline_pages/offline_page_feature.h" 24 #include "components/offline_pages/core/offline_page_feature.h"
25 #include "components/offline_pages/offline_page_model.h" 25 #include "components/offline_pages/core/offline_page_model.h"
26 #include "components/offline_pages/offline_page_test_archiver.h" 26 #include "components/offline_pages/core/offline_page_test_archiver.h"
27 #include "components/offline_pages/offline_page_test_store.h" 27 #include "components/offline_pages/core/offline_page_test_store.h"
28 #include "components/offline_pages/offline_page_types.h" 28 #include "components/offline_pages/core/offline_page_types.h"
29 #include "content/public/test/test_browser_thread_bundle.h" 29 #include "content/public/test/test_browser_thread_bundle.h"
30 #include "net/base/filename_util.h" 30 #include "net/base/filename_util.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 #include "url/gurl.h" 32 #include "url/gurl.h"
33 33
34 namespace offline_pages { 34 namespace offline_pages {
35 namespace { 35 namespace {
36 36
37 const GURL kTestPage1Url("http://test.org/page1"); 37 const GURL kTestPage1Url("http://test.org/page1");
38 const GURL kTestPage2Url("http://test.org/page2"); 38 const GURL kTestPage2Url("http://test.org/page2");
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 EXPECT_TRUE(page_exists); 199 EXPECT_TRUE(page_exists);
200 // This one should be missing 200 // This one should be missing
201 OfflinePageUtils::CheckExistenceOfPagesWithURL( 201 OfflinePageUtils::CheckExistenceOfPagesWithURL(
202 profile(), kDownloadNamespace, kTestPage3Url, 202 profile(), kDownloadNamespace, kTestPage3Url,
203 base::Bind(&BoolCallback, base::Unretained(&page_exists))); 203 base::Bind(&BoolCallback, base::Unretained(&page_exists)));
204 RunUntilIdle(); 204 RunUntilIdle();
205 EXPECT_FALSE(page_exists); 205 EXPECT_FALSE(page_exists);
206 } 206 }
207 207
208 } // namespace offline_pages 208 } // namespace offline_pages
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698