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