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

Side by Side Diff: chrome/browser/history/android/android_history_provider_service_unittest.cc

Issue 584013002: Componentize history_types.{cc,h} and android_history_types.{cc,h} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 2 months 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 "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/task/cancelable_task_tracker.h" 8 #include "base/task/cancelable_task_tracker.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
11 #include "chrome/browser/history/android/android_history_types.h"
12 #include "chrome/common/chrome_constants.h" 11 #include "chrome/common/chrome_constants.h"
13 #include "chrome/test/base/testing_browser_process.h" 12 #include "chrome/test/base/testing_browser_process.h"
14 #include "chrome/test/base/testing_profile.h" 13 #include "chrome/test/base/testing_profile.h"
15 #include "chrome/test/base/testing_profile_manager.h" 14 #include "chrome/test/base/testing_profile_manager.h"
16 #include "components/bookmarks/test/bookmark_test_helpers.h" 15 #include "components/bookmarks/test/bookmark_test_helpers.h"
16 #include "components/history/core/android/android_history_types.h"
17 #include "content/public/browser/browser_thread.h" 17 #include "content/public/browser/browser_thread.h"
18 #include "content/public/test/test_browser_thread.h" 18 #include "content/public/test/test_browser_thread.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 20
21 namespace { 21 namespace {
22 22
23 using base::Bind; 23 using base::Bind;
24 using base::Time; 24 using base::Time;
25 using content::BrowserThread; 25 using content::BrowserThread;
26 using history::AndroidStatement; 26 using history::AndroidStatement;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 service_->DeleteSearchTerms(std::string(), 276 service_->DeleteSearchTerms(std::string(),
277 std::vector<base::string16>(), 277 std::vector<base::string16>(),
278 Bind(&CallbackHelper::OnDeleted, callback.get()), 278 Bind(&CallbackHelper::OnDeleted, callback.get()),
279 &cancelable_tracker_); 279 &cancelable_tracker_);
280 base::MessageLoop::current()->Run(); 280 base::MessageLoop::current()->Run();
281 EXPECT_TRUE(callback->success()); 281 EXPECT_TRUE(callback->success());
282 EXPECT_EQ(1, callback->count()); 282 EXPECT_EQ(1, callback->count());
283 } 283 }
284 284
285 } // namespace 285 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698