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

Side by Side Diff: chrome/browser/extensions/api/storage/settings_sync_unittest.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 "testing/gtest/include/gtest/gtest.h"
6
7 #include "base/bind.h" 5 #include "base/bind.h"
8 #include "base/files/scoped_temp_dir.h" 6 #include "base/files/scoped_temp_dir.h"
9 #include "base/json/json_reader.h" 7 #include "base/json/json_reader.h"
10 #include "base/json/json_writer.h" 8 #include "base/json/json_writer.h"
11 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "chrome/browser/extensions/api/storage/leveldb_settings_storage_factory .h"
12 #include "chrome/browser/extensions/api/storage/settings_frontend.h"
13 #include "chrome/browser/extensions/api/storage/settings_storage_factory.h"
14 #include "chrome/browser/extensions/api/storage/settings_sync_util.h"
15 #include "chrome/browser/extensions/api/storage/settings_test_util.h"
16 #include "chrome/browser/extensions/api/storage/syncable_settings_storage.h"
13 #include "chrome/browser/extensions/extension_system.h" 17 #include "chrome/browser/extensions/extension_system.h"
14 #include "chrome/browser/extensions/settings/leveldb_settings_storage_factory.h"
15 #include "chrome/browser/extensions/settings/settings_frontend.h"
16 #include "chrome/browser/extensions/settings/settings_storage_factory.h"
17 #include "chrome/browser/extensions/settings/settings_sync_util.h"
18 #include "chrome/browser/extensions/settings/settings_test_util.h"
19 #include "chrome/browser/extensions/settings/syncable_settings_storage.h"
20 #include "chrome/browser/extensions/test_extension_service.h" 18 #include "chrome/browser/extensions/test_extension_service.h"
21 #include "chrome/browser/value_store/testing_value_store.h" 19 #include "chrome/browser/value_store/testing_value_store.h"
22 #include "content/public/test/test_browser_thread.h" 20 #include "content/public/test/test_browser_thread.h"
23 #include "sync/api/sync_change_processor.h" 21 #include "sync/api/sync_change_processor.h"
24 #include "sync/api/sync_error_factory.h" 22 #include "sync/api/sync_error_factory.h"
25 #include "sync/api/sync_error_factory_mock.h" 23 #include "sync/api/sync_error_factory_mock.h"
24 #include "testing/gtest/include/gtest/gtest.h"
26 25
27 using content::BrowserThread; 26 using content::BrowserThread;
28 27
29 namespace extensions { 28 namespace extensions {
30 29
31 namespace util = settings_test_util; 30 namespace util = settings_test_util;
32 31
33 namespace { 32 namespace {
34 33
35 // To save typing ValueStore::DEFAULTS everywhere. 34 // To save typing ValueStore::DEFAULTS everywhere.
(...skipping 1381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 ASSERT_EQ(1u, sync_processor_->changes().size()); 1416 ASSERT_EQ(1u, sync_processor_->changes().size());
1418 SettingSyncData sync_data = sync_processor_->changes()[0]; 1417 SettingSyncData sync_data = sync_processor_->changes()[0];
1419 EXPECT_EQ(syncer::SyncChange::ACTION_ADD, sync_data.change_type()); 1418 EXPECT_EQ(syncer::SyncChange::ACTION_ADD, sync_data.change_type());
1420 EXPECT_EQ("ext", sync_data.extension_id()); 1419 EXPECT_EQ("ext", sync_data.extension_id());
1421 EXPECT_EQ("key.with.spot", sync_data.key()); 1420 EXPECT_EQ("key.with.spot", sync_data.key());
1422 EXPECT_TRUE(sync_data.value().Equals(string_value.get())); 1421 EXPECT_TRUE(sync_data.value().Equals(string_value.get()));
1423 } 1422 }
1424 } 1423 }
1425 1424
1426 } // namespace extensions 1425 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698