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

Side by Side Diff: chrome/browser/extensions/api/sessions/sessions_apitest.cc

Issue 1501123003: Componentize ProfileSyncServiceMock (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@565305_InitParam
Patch Set: Just rebased Created 5 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/api/sessions/sessions_api.h" 5 #include "chrome/browser/extensions/api/sessions/sessions_api.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/strings/pattern.h" 9 #include "base/strings/pattern.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "chrome/browser/extensions/api/tabs/tabs_api.h" 11 #include "chrome/browser/extensions/api/tabs/tabs_api.h"
12 #include "chrome/browser/extensions/extension_apitest.h" 12 #include "chrome/browser/extensions/extension_apitest.h"
13 #include "chrome/browser/extensions/extension_function_test_utils.h" 13 #include "chrome/browser/extensions/extension_function_test_utils.h"
14 #include "chrome/browser/profiles/profile_manager.h" 14 #include "chrome/browser/profiles/profile_manager.h"
15 #include "chrome/browser/sync/chrome_sync_client.h" 15 #include "chrome/browser/sync/chrome_sync_client.h"
16 #include "chrome/browser/sync/profile_sync_service_factory.h" 16 #include "chrome/browser/sync/profile_sync_service_factory.h"
17 #include "chrome/browser/sync/profile_sync_service_mock.h"
18 #include "chrome/browser/sync/profile_sync_test_util.h" 17 #include "chrome/browser/sync/profile_sync_test_util.h"
19 #include "chrome/common/chrome_paths.h" 18 #include "chrome/common/chrome_paths.h"
20 #include "chrome/common/chrome_switches.h" 19 #include "chrome/common/chrome_switches.h"
21 #include "chrome/test/base/in_process_browser_test.h" 20 #include "chrome/test/base/in_process_browser_test.h"
22 #include "chrome/test/base/test_switches.h" 21 #include "chrome/test/base/test_switches.h"
23 #include "chrome/test/base/testing_browser_process.h" 22 #include "chrome/test/base/testing_browser_process.h"
24 #include "components/browser_sync/browser/profile_sync_service.h" 23 #include "components/browser_sync/browser/profile_sync_service.h"
24 #include "components/browser_sync/browser/profile_sync_service_mock.h"
25 #include "components/sync_driver/local_device_info_provider_mock.h" 25 #include "components/sync_driver/local_device_info_provider_mock.h"
26 #include "components/sync_driver/sync_api_component_factory_mock.h" 26 #include "components/sync_driver/sync_api_component_factory_mock.h"
27 #include "extensions/browser/api_test_utils.h" 27 #include "extensions/browser/api_test_utils.h"
28 #include "sync/api/attachments/attachment_id.h" 28 #include "sync/api/attachments/attachment_id.h"
29 #include "sync/api/fake_sync_change_processor.h" 29 #include "sync/api/fake_sync_change_processor.h"
30 #include "sync/api/sync_error_factory_mock.h" 30 #include "sync/api/sync_error_factory_mock.h"
31 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h" 31 #include "sync/internal_api/public/attachments/attachment_service_proxy_for_test .h"
32 32
33 #if defined(OS_CHROMEOS) 33 #if defined(OS_CHROMEOS)
34 #include "chromeos/chromeos_switches.h" 34 #include "chromeos/chromeos_switches.h"
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 return; 392 return;
393 #endif 393 #endif
394 394
395 ASSERT_TRUE(RunExtensionSubtest("sessions", 395 ASSERT_TRUE(RunExtensionSubtest("sessions",
396 "sessions.html")) << message_; 396 "sessions.html")) << message_;
397 } 397 }
398 398
399 } // namespace 399 } // namespace
400 400
401 } // namespace extensions 401 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698