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

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

Issue 11759019: Update other unittests to use newly added TestingBrowserProcess::GetGlobal(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simpler codez Created 7 years, 11 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 | Annotate | Revision Log
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_provider_backend.h" 5 #include "chrome/browser/history/android/android_provider_backend.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 scoped_ptr<URLsModifiedDetails> modified_details_; 102 scoped_ptr<URLsModifiedDetails> modified_details_;
103 scoped_ptr<FaviconChangeDetails> favicon_details_; 103 scoped_ptr<FaviconChangeDetails> favicon_details_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackendDelegate); 105 DISALLOW_COPY_AND_ASSIGN(AndroidProviderBackendDelegate);
106 }; 106 };
107 107
108 class AndroidProviderBackendTest : public testing::Test { 108 class AndroidProviderBackendTest : public testing::Test {
109 public: 109 public:
110 AndroidProviderBackendTest() 110 AndroidProviderBackendTest()
111 : profile_manager_( 111 : profile_manager_(
112 static_cast<TestingBrowserProcess*>(g_browser_process)), 112 TestingBrowserProcess::GetGlobal()),
113 bookmark_model_(NULL), 113 bookmark_model_(NULL),
114 ui_thread_(BrowserThread::UI, &message_loop_), 114 ui_thread_(BrowserThread::UI, &message_loop_),
115 file_thread_(BrowserThread::FILE, &message_loop_) { 115 file_thread_(BrowserThread::FILE, &message_loop_) {
116 } 116 }
117 ~AndroidProviderBackendTest() { 117 ~AndroidProviderBackendTest() {
118 } 118 }
119 119
120 protected: 120 protected:
121 virtual void SetUp() OVERRIDE { 121 virtual void SetUp() OVERRIDE {
122 // Setup the testing profile, so the bookmark_model_sql_handler could 122 // Setup the testing profile, so the bookmark_model_sql_handler could
(...skipping 1971 matching lines...) Expand 10 before | Expand all | Expand 10 after
2094 update_args, &update_count)); 2094 update_args, &update_count));
2095 // Verify notifications. 2095 // Verify notifications.
2096 EXPECT_FALSE(delegate_.deleted_details()); 2096 EXPECT_FALSE(delegate_.deleted_details());
2097 ASSERT_TRUE(delegate_.modified_details()); 2097 ASSERT_TRUE(delegate_.modified_details());
2098 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size()); 2098 ASSERT_EQ(1u, delegate_.modified_details()->changed_urls.size());
2099 // No favicon will be updated as thumbnail database is missing. 2099 // No favicon will be updated as thumbnail database is missing.
2100 EXPECT_FALSE(delegate_.favicon_details()); 2100 EXPECT_FALSE(delegate_.favicon_details());
2101 } 2101 }
2102 2102
2103 } // namespace history 2103 } // namespace history
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698