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

Side by Side Diff: chrome/browser/sync/test/integration/extension_settings_helper.cc

Issue 2965153002: Migrate Extensions code to Task Scheduler API (Closed)
Patch Set: Self review Created 3 years, 5 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 (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 "chrome/browser/sync/test/integration/extension_settings_helper.h" 5 #include "chrome/browser/sync/test/integration/extension_settings_helper.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/json/json_writer.h" 10 #include "base/json/json_writer.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/extensions/api/storage/backend_task_runner.h"
15 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/sync/test/integration/extensions_helper.h" 15 #include "chrome/browser/sync/test/integration/extensions_helper.h"
17 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" 16 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
18 #include "chrome/browser/sync/test/integration/sync_extension_helper.h" 17 #include "chrome/browser/sync/test/integration/sync_extension_helper.h"
18 #include "extensions/browser/api/storage/backend_task_runner.h"
19 #include "extensions/browser/api/storage/storage_frontend.h" 19 #include "extensions/browser/api/storage/storage_frontend.h"
20 #include "extensions/browser/extension_registry.h" 20 #include "extensions/browser/extension_registry.h"
21 #include "extensions/browser/value_store/value_store.h" 21 #include "extensions/browser/value_store/value_store.h"
22 #include "extensions/common/extension.h" 22 #include "extensions/common/extension.h"
23 #include "extensions/common/extension_set.h" 23 #include "extensions/common/extension_set.h"
24 24
25 using extensions::ExtensionRegistry; 25 using extensions::ExtensionRegistry;
26 using sync_datatype_helper::test; 26 using sync_datatype_helper::test;
27 27
28 namespace extension_settings_helper { 28 namespace extension_settings_helper {
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 bool all_profiles_same = true; 118 bool all_profiles_same = true;
119 for (int i = 0; i < test()->num_clients(); ++i) { 119 for (int i = 0; i < test()->num_clients(); ++i) {
120 // &= so that all profiles are tested; analogous to EXPECT over ASSERT. 120 // &= so that all profiles are tested; analogous to EXPECT over ASSERT.
121 all_profiles_same &= 121 all_profiles_same &=
122 AreSettingsSame(test()->verifier(), test()->GetProfile(i)); 122 AreSettingsSame(test()->verifier(), test()->GetProfile(i));
123 } 123 }
124 return all_profiles_same; 124 return all_profiles_same;
125 } 125 }
126 126
127 } // namespace extension_settings_helper 127 } // namespace extension_settings_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698