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

Side by Side Diff: chrome/browser/sync/profile_sync_service_unittest.cc

Issue 10869073: Split user agent code out of the 'glue' target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add new test file to patch Created 8 years, 3 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
« no previous file with comments | « no previous file | content/app/content_main_runner.cc » ('j') | webkit/glue/user_agent_unittest.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/file_util.h" 5 #include "base/file_util.h"
6 #include "base/memory/scoped_ptr.h" 6 #include "base/memory/scoped_ptr.h"
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/signin/signin_manager.h" 9 #include "chrome/browser/signin/signin_manager.h"
10 #include "chrome/browser/signin/signin_manager_factory.h" 10 #include "chrome/browser/signin/signin_manager_factory.h"
(...skipping 11 matching lines...) Expand all
22 #include "content/public/common/content_client.h" 22 #include "content/public/common/content_client.h"
23 #include "content/public/test/test_browser_thread.h" 23 #include "content/public/test/test_browser_thread.h"
24 #include "google/cacheinvalidation/include/types.h" 24 #include "google/cacheinvalidation/include/types.h"
25 #include "sync/js/js_arg_list.h" 25 #include "sync/js/js_arg_list.h"
26 #include "sync/js/js_event_details.h" 26 #include "sync/js/js_event_details.h"
27 #include "sync/js/js_test_util.h" 27 #include "sync/js/js_test_util.h"
28 #include "sync/notifier/fake_sync_notifier_observer.h" 28 #include "sync/notifier/fake_sync_notifier_observer.h"
29 #include "sync/notifier/object_id_state_map_test_util.h" 29 #include "sync/notifier/object_id_state_map_test_util.h"
30 #include "testing/gmock/include/gmock/gmock.h" 30 #include "testing/gmock/include/gmock/gmock.h"
31 #include "testing/gtest/include/gtest/gtest.h" 31 #include "testing/gtest/include/gtest/gtest.h"
32 #include "webkit/glue/webkit_glue.h" 32 #include "webkit/glue/user_agent.h"
33 33
34 // TODO(akalin): Add tests here that exercise the whole 34 // TODO(akalin): Add tests here that exercise the whole
35 // ProfileSyncService/SyncBackendHost stack while mocking out as 35 // ProfileSyncService/SyncBackendHost stack while mocking out as
36 // little as possible. 36 // little as possible.
37 37
38 namespace browser_sync { 38 namespace browser_sync {
39 39
40 namespace { 40 namespace {
41 41
42 using content::BrowserThread; 42 using content::BrowserThread;
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 EXPECT_THAT(states, Eq(observer.GetLastNotificationIdStateMap())); 442 EXPECT_THAT(states, Eq(observer.GetLastNotificationIdStateMap()));
443 EXPECT_EQ(syncer::REMOTE_NOTIFICATION, observer.GetLastNotificationSource()); 443 EXPECT_EQ(syncer::REMOTE_NOTIFICATION, observer.GetLastNotificationSource());
444 444
445 backend->EmitOnNotificationsDisabled(syncer::TRANSIENT_NOTIFICATION_ERROR); 445 backend->EmitOnNotificationsDisabled(syncer::TRANSIENT_NOTIFICATION_ERROR);
446 EXPECT_EQ(syncer::TRANSIENT_NOTIFICATION_ERROR, 446 EXPECT_EQ(syncer::TRANSIENT_NOTIFICATION_ERROR,
447 observer.GetNotificationsDisabledReason()); 447 observer.GetNotificationsDisabledReason());
448 } 448 }
449 449
450 } // namespace 450 } // namespace
451 } // namespace browser_sync 451 } // namespace browser_sync
OLDNEW
« no previous file with comments | « no previous file | content/app/content_main_runner.cc » ('j') | webkit/glue/user_agent_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698