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

Side by Side Diff: sync/syncable/directory_backing_store_unittest.cc

Issue 1991503002: [sql] sql::ScopedErrorIgnorer rename to sql::test::ScopedErrorExpecter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "sync/syncable/directory_backing_store.h" 5 #include "sync/syncable/directory_backing_store.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/files/scoped_temp_dir.h" 15 #include "base/files/scoped_temp_dir.h"
16 #include "base/message_loop/message_loop.h" 16 #include "base/message_loop/message_loop.h"
17 #include "base/run_loop.h" 17 #include "base/run_loop.h"
18 #include "base/stl_util.h" 18 #include "base/stl_util.h"
19 #include "base/strings/string_number_conversions.h" 19 #include "base/strings/string_number_conversions.h"
20 #include "base/strings/stringprintf.h" 20 #include "base/strings/stringprintf.h"
21 #include "build/build_config.h" 21 #include "build/build_config.h"
22 #include "sql/connection.h" 22 #include "sql/connection.h"
23 #include "sql/statement.h" 23 #include "sql/statement.h"
24 #include "sql/test/scoped_error_ignorer.h"
Scott Hess - ex-Googler 2016/06/21 00:18:26 I'm posting a TBR to remove this IWYU fail in my p
Mark P 2016/06/21 04:34:11 Acknowledged. I'm sure you'll figure it out.
Scott Hess - ex-Googler 2016/06/21 05:55:13 The rebase picked it up. Likely just an edge case
25 #include "sql/test/test_helpers.h" 24 #include "sql/test/test_helpers.h"
26 #include "sync/base/sync_export.h" 25 #include "sync/base/sync_export.h"
27 #include "sync/internal_api/public/base/node_ordinal.h" 26 #include "sync/internal_api/public/base/node_ordinal.h"
28 #include "sync/protocol/bookmark_specifics.pb.h" 27 #include "sync/protocol/bookmark_specifics.pb.h"
29 #include "sync/protocol/sync.pb.h" 28 #include "sync/protocol/sync.pb.h"
30 #include "sync/syncable/directory.h" 29 #include "sync/syncable/directory.h"
31 #include "sync/syncable/on_disk_directory_backing_store.h" 30 #include "sync/syncable/on_disk_directory_backing_store.h"
32 #include "sync/syncable/syncable-inl.h" 31 #include "sync/syncable/syncable-inl.h"
33 #include "sync/test/directory_backing_store_corruption_testing.h" 32 #include "sync/test/directory_backing_store_corruption_testing.h"
34 #include "sync/test/test_directory_backing_store.h" 33 #include "sync/test/test_directory_backing_store.h"
(...skipping 4230 matching lines...) Expand 10 before | Expand all | Expand 10 after
4265 ASSERT_FALSE(dbs->SaveChanges(snapshot)); 4264 ASSERT_FALSE(dbs->SaveChanges(snapshot));
4266 // At this point the handler has been posted but not executed. 4265 // At this point the handler has been posted but not executed.
4267 ASSERT_FALSE(was_called); 4266 ASSERT_FALSE(was_called);
4268 // Pump the message loop and see that it is executed. 4267 // Pump the message loop and see that it is executed.
4269 base::RunLoop().RunUntilIdle(); 4268 base::RunLoop().RunUntilIdle();
4270 ASSERT_TRUE(was_called); 4269 ASSERT_TRUE(was_called);
4271 } 4270 }
4272 4271
4273 } // namespace syncable 4272 } // namespace syncable
4274 } // namespace syncer 4273 } // namespace syncer
OLDNEW
« sql/test/scoped_error_expecter.h ('K') | « sql/test/scoped_error_ignorer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698