OLD | NEW |
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 "chrome/browser/history/android/android_history_provider_service.h" | 5 #include "chrome/browser/history/android/android_history_provider_service.h" |
6 | 6 |
7 #include "base/time.h" | 7 #include "base/time.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/history/android/android_history_types.h" | 9 #include "chrome/browser/history/android/android_history_types.h" |
10 #include "chrome/common/chrome_constants.h" | 10 #include "chrome/common/chrome_constants.h" |
11 #include "chrome/test/base/testing_browser_process.h" | 11 #include "chrome/test/base/testing_browser_process.h" |
12 #include "chrome/test/base/testing_profile_manager.h" | 12 #include "chrome/test/base/testing_profile_manager.h" |
13 #include "chrome/test/base/testing_profile.h" | 13 #include "chrome/test/base/testing_profile.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
15 #include "content/test/test_browser_thread.h" | 15 #include "content/public/test/test_browser_thread.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 using base::Bind; | 20 using base::Bind; |
21 using base::Time; | 21 using base::Time; |
22 using content::BrowserThread; | 22 using content::BrowserThread; |
23 using history::AndroidStatement; | 23 using history::AndroidStatement; |
24 using history::HistoryAndBookmarkRow; | 24 using history::HistoryAndBookmarkRow; |
25 using history::SearchRow; | 25 using history::SearchRow; |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 | 252 |
253 // Delete the row. | 253 // Delete the row. |
254 service_->DeleteSearchTerms(std::string(), std::vector<string16>(), | 254 service_->DeleteSearchTerms(std::string(), std::vector<string16>(), |
255 &cancelable_consumer_, Bind(&CallbackHelper::OnDeleted, callback.get())); | 255 &cancelable_consumer_, Bind(&CallbackHelper::OnDeleted, callback.get())); |
256 MessageLoop::current()->Run(); | 256 MessageLoop::current()->Run(); |
257 EXPECT_TRUE(callback->success()); | 257 EXPECT_TRUE(callback->success()); |
258 EXPECT_EQ(1, callback->count()); | 258 EXPECT_EQ(1, callback->count()); |
259 } | 259 } |
260 | 260 |
261 } // namespace | 261 } // namespace |
OLD | NEW |