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

Side by Side Diff: chrome/browser/sync/tools/sync_listen_notifications.cc

Issue 7541001: Move more files from chrome/test to chrome/test/base, part #3 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <cstdio> 5 #include <cstdio>
6 #include <string> 6 #include <string>
7 7
8 #include "base/at_exit.h" 8 #include "base/at_exit.h"
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/message_loop.h" 14 #include "base/message_loop.h"
15 #include "chrome/browser/sync/notifier/sync_notifier.h" 15 #include "chrome/browser/sync/notifier/sync_notifier.h"
16 #include "chrome/browser/sync/notifier/sync_notifier_factory.h" 16 #include "chrome/browser/sync/notifier/sync_notifier_factory.h"
17 #include "chrome/browser/sync/notifier/sync_notifier_observer.h" 17 #include "chrome/browser/sync/notifier/sync_notifier_observer.h"
18 #include "chrome/browser/sync/syncable/model_type.h" 18 #include "chrome/browser/sync/syncable/model_type.h"
19 #include "chrome/browser/sync/syncable/model_type_payload_map.h" 19 #include "chrome/browser/sync/syncable/model_type_payload_map.h"
20 #include "chrome/test/test_url_request_context_getter.h" 20 #include "chrome/test/base/test_url_request_context_getter.h"
21 #include "content/browser/browser_thread.h" 21 #include "content/browser/browser_thread.h"
22 22
23 // This is a simple utility that initializes a sync notifier and 23 // This is a simple utility that initializes a sync notifier and
24 // listens to any received notifications. 24 // listens to any received notifications.
25 25
26 namespace { 26 namespace {
27 27
28 // Class to print received notifications events. 28 // Class to print received notifications events.
29 class NotificationPrinter : public sync_notifier::SyncNotifierObserver { 29 class NotificationPrinter : public sync_notifier::SyncNotifierObserver {
30 public: 30 public:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } 112 }
113 sync_notifier->UpdateEnabledTypes(types); 113 sync_notifier->UpdateEnabledTypes(types);
114 } 114 }
115 115
116 ui_loop.Run(); 116 ui_loop.Run();
117 117
118 sync_notifier->RemoveObserver(&notification_printer); 118 sync_notifier->RemoveObserver(&notification_printer);
119 io_thread.Stop(); 119 io_thread.Stop();
120 return 0; 120 return 0;
121 } 121 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698