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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_database_helper_browsertest.cc

Issue 687903003: Cleanup: Remove unneeded ui_test_utils.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix cros Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/bind_helpers.h" 6 #include "base/bind_helpers.h"
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" 9 #include "chrome/browser/browsing_data/browsing_data_database_helper.h"
10 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h" 10 #include "chrome/browser/browsing_data/browsing_data_helper_browsertest.h"
11 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "chrome/test/base/in_process_browser_test.h" 13 #include "chrome/test/base/in_process_browser_test.h"
14 #include "chrome/test/base/ui_test_utils.h"
15 #include "content/public/browser/storage_partition.h" 14 #include "content/public/browser/storage_partition.h"
16 #include "content/public/test/test_browser_thread.h" 15 #include "content/public/test/test_browser_thread.h"
16 #include "content/public/test/test_utils.h"
17 17
18 using content::BrowserContext; 18 using content::BrowserContext;
19 using content::BrowserThread; 19 using content::BrowserThread;
20 20
21 namespace { 21 namespace {
22 typedef BrowsingDataHelperCallback<BrowsingDataDatabaseHelper::DatabaseInfo> 22 typedef BrowsingDataHelperCallback<BrowsingDataDatabaseHelper::DatabaseInfo>
23 TestCompletionCallback; 23 TestCompletionCallback;
24 24
25 const char kTestIdentifier1[] = "http_www.google.com_0"; 25 const char kTestIdentifier1[] = "http_www.google.com_0";
26 26
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 base::Unretained(&callback))); 143 base::Unretained(&callback)));
144 144
145 std::list<BrowsingDataDatabaseHelper::DatabaseInfo> result = 145 std::list<BrowsingDataDatabaseHelper::DatabaseInfo> result =
146 callback.result(); 146 callback.result();
147 147
148 ASSERT_EQ(1u, result.size()); 148 ASSERT_EQ(1u, result.size());
149 EXPECT_EQ(origin_str, result.begin()->identifier.ToString()); 149 EXPECT_EQ(origin_str, result.begin()->identifier.ToString());
150 EXPECT_STREQ(db, result.begin()->database_name.c_str()); 150 EXPECT_STREQ(db, result.begin()->database_name.c_str());
151 } 151 }
152 } // namespace 152 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698