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