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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_apitest.cc

Issue 11747025: Run the JSON Schema Compiler's bundle compilation on JSON files. Previously it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix ms release build Created 7 years, 11 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) 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/bind.h" 5 #include "base/bind.h"
6 #include "base/json/json_writer.h" 6 #include "base/json/json_writer.h"
7 #include "chrome/browser/extensions/api/storage/settings_frontend.h"
8 #include "chrome/browser/extensions/api/storage/settings_namespace.h"
9 #include "chrome/browser/extensions/api/storage/settings_sync_util.h"
7 #include "chrome/browser/extensions/extension_apitest.h" 10 #include "chrome/browser/extensions/extension_apitest.h"
8 #include "chrome/browser/extensions/extension_service.h" 11 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_test_message_listener.h" 12 #include "chrome/browser/extensions/extension_test_message_listener.h"
10 #include "chrome/browser/extensions/settings/settings_frontend.h"
11 #include "chrome/browser/extensions/settings/settings_namespace.h"
12 #include "chrome/browser/extensions/settings/settings_sync_util.h"
13 #include "chrome/browser/profiles/profile.h" 13 #include "chrome/browser/profiles/profile.h"
14 #include "chrome/browser/ui/browser.h" 14 #include "chrome/browser/ui/browser.h"
15 #include "chrome/common/extensions/value_builder.h" 15 #include "chrome/common/extensions/value_builder.h"
16 #include "chrome/test/base/ui_test_utils.h" 16 #include "chrome/test/base/ui_test_utils.h"
17 #include "sync/api/sync_change.h" 17 #include "sync/api/sync_change.h"
18 #include "sync/api/sync_change_processor.h" 18 #include "sync/api/sync_change_processor.h"
19 #include "sync/api/sync_error_factory.h" 19 #include "sync/api/sync_error_factory.h"
20 #include "sync/api/sync_error_factory_mock.h" 20 #include "sync/api/sync_error_factory_mock.h"
21 #include "testing/gmock/include/gmock/gmock.h" 21 #include "testing/gmock/include/gmock/gmock.h"
22 22
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
506 SettingsFrontend* frontend = 506 SettingsFrontend* frontend =
507 browser()->profile()->GetExtensionService()->settings_frontend(); 507 browser()->profile()->GetExtensionService()->settings_frontend();
508 frontend->DisableStorageForTesting(MANAGED); 508 frontend->DisableStorageForTesting(MANAGED);
509 EXPECT_FALSE(frontend->IsStorageEnabled(MANAGED)); 509 EXPECT_FALSE(frontend->IsStorageEnabled(MANAGED));
510 // Now run the extension. 510 // Now run the extension.
511 ASSERT_TRUE(RunExtensionTest("settings/managed_storage_disabled")) 511 ASSERT_TRUE(RunExtensionTest("settings/managed_storage_disabled"))
512 << message_; 512 << message_;
513 } 513 }
514 514
515 } // namespace extensions 515 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/storage/setting_sync_data.cc ('k') | chrome/browser/extensions/api/storage/settings_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698