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

Side by Side Diff: chrome/browser/sync/glue/session_model_associator_unittest.cc

Issue 12212048: Linux/ChromeOS Chromium style checker cleanup, chrome/browser edition. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 7 years, 10 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "chrome/browser/sessions/session_types.h" 10 #include "chrome/browser/sessions/session_types.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 MOCK_CONST_METHOD0(IsPinned, bool()); 180 MOCK_CONST_METHOD0(IsPinned, bool());
181 }; 181 };
182 182
183 class SyncRefreshListener : public content::NotificationObserver { 183 class SyncRefreshListener : public content::NotificationObserver {
184 public: 184 public:
185 SyncRefreshListener() : notified_of_refresh_(false) { 185 SyncRefreshListener() : notified_of_refresh_(false) {
186 registrar_.Add(this, chrome::NOTIFICATION_SYNC_REFRESH_LOCAL, 186 registrar_.Add(this, chrome::NOTIFICATION_SYNC_REFRESH_LOCAL,
187 content::NotificationService::AllSources()); 187 content::NotificationService::AllSources());
188 } 188 }
189 189
190 void Observe(int type, 190 virtual void Observe(int type,
191 const content::NotificationSource& source, 191 const content::NotificationSource& source,
192 const content::NotificationDetails& details) { 192 const content::NotificationDetails& details) OVERRIDE {
193 if (type == chrome::NOTIFICATION_SYNC_REFRESH_LOCAL) { 193 if (type == chrome::NOTIFICATION_SYNC_REFRESH_LOCAL) {
194 notified_of_refresh_ = true; 194 notified_of_refresh_ = true;
195 } 195 }
196 } 196 }
197 197
198 bool notified_of_refresh() const { return notified_of_refresh_; } 198 bool notified_of_refresh() const { return notified_of_refresh_; }
199 199
200 private: 200 private:
201 bool notified_of_refresh_; 201 bool notified_of_refresh_;
202 content::NotificationRegistrar registrar_; 202 content::NotificationRegistrar registrar_;
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
565 EXPECT_EQ(kTime2, 565 EXPECT_EQ(kTime2,
566 SessionTypesTestHelper::GetTimestamp(session_tab.navigations[1])); 566 SessionTypesTestHelper::GetTimestamp(session_tab.navigations[1]));
567 EXPECT_EQ(kTime3, 567 EXPECT_EQ(kTime3,
568 SessionTypesTestHelper::GetTimestamp(session_tab.navigations[2])); 568 SessionTypesTestHelper::GetTimestamp(session_tab.navigations[2]));
569 EXPECT_TRUE(session_tab.session_storage_persistent_id.empty()); 569 EXPECT_TRUE(session_tab.session_storage_persistent_id.empty());
570 } 570 }
571 571
572 } // namespace 572 } // namespace
573 573
574 } // namespace browser_sync 574 } // namespace browser_sync
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698