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

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

Issue 1308313003: Componentize chrome/common/sync_util (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/sync/startup_controller.h" 5 #include "chrome/browser/sync/startup_controller.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 #include "chrome/browser/defaults.h" 11 #include "chrome/browser/defaults.h"
12 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h" 12 #include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" 13 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
14 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h" 14 #include "chrome/browser/sync/supervised_user_signin_manager_wrapper.h"
15 #include "chrome/common/chrome_switches.h"
16 #include "chrome/test/base/testing_profile.h" 15 #include "chrome/test/base/testing_profile.h"
17 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h" 16 #include "components/signin/core/browser/fake_profile_oauth2_token_service.h"
17 #include "components/sync_driver/sync_driver_switches.h"
18 #include "components/sync_driver/sync_prefs.h" 18 #include "components/sync_driver/sync_prefs.h"
19 #include "content/public/test/test_browser_thread_bundle.h" 19 #include "content/public/test/test_browser_thread_bundle.h"
20 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
21 21
22 namespace browser_sync { 22 namespace browser_sync {
23 23
24 static const char kTestUser[] = "test@gmail.com"; 24 static const char kTestUser[] = "test@gmail.com";
25 static const char kTestToken[] = "testToken"; 25 static const char kTestToken[] = "testToken";
26 26
27 // These are coupled to the implementation of StartupController's 27 // These are coupled to the implementation of StartupController's
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 controller()->set_setup_in_progress(true); 254 controller()->set_setup_in_progress(true);
255 255
256 // This could happen if the UI triggers a stop-syncing permanently call. 256 // This could happen if the UI triggers a stop-syncing permanently call.
257 controller()->Reset(syncer::UserTypes()); 257 controller()->Reset(syncer::UserTypes());
258 258
259 // From the UI's point of view, setup is still in progress. 259 // From the UI's point of view, setup is still in progress.
260 EXPECT_TRUE(controller()->setup_in_progress()); 260 EXPECT_TRUE(controller()->setup_in_progress());
261 } 261 }
262 262
263 } // namespace browser_sync 263 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/startup_controller.cc ('k') | chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698