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

Side by Side Diff: extensions/browser/value_store/leveldb_value_store_unittest.cc

Issue 1549643002: Switch to standard integer types in extensions/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean
Patch Set: Created 4 years, 12 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "extensions/browser/value_store/value_store_unittest.h" 5 #include "extensions/browser/value_store/value_store_unittest.h"
6 6
7 #include <stddef.h>
8
7 #include "base/files/file_enumerator.h" 9 #include "base/files/file_enumerator.h"
8 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
9 #include "base/files/scoped_temp_dir.h" 11 #include "base/files/scoped_temp_dir.h"
10 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
11 #include "base/message_loop/message_loop.h" 13 #include "base/message_loop/message_loop.h"
12 #include "base/values.h" 14 #include "base/values.h"
13 #include "content/public/test/test_browser_thread_bundle.h" 15 #include "content/public/test/test_browser_thread_bundle.h"
14 #include "extensions/browser/value_store/leveldb_value_store.h" 16 #include "extensions/browser/value_store/leveldb_value_store.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 #include "third_party/leveldatabase/src/include/leveldb/db.h" 18 #include "third_party/leveldatabase/src/include/leveldb/db.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 } 181 }
180 CreateStore(); 182 CreateStore();
181 183
182 // We couldn't recover anything, but we should be in a sane state again. 184 // We couldn't recover anything, but we should be in a sane state again.
183 ValueStore::ReadResult result = store()->Get(); 185 ValueStore::ReadResult result = store()->Get();
184 ASSERT_EQ(ValueStore::RESTORE_REPAIR_SUCCESS, 186 ASSERT_EQ(ValueStore::RESTORE_REPAIR_SUCCESS,
185 result->status().restore_status); 187 result->status().restore_status);
186 EXPECT_TRUE(result->status().ok()); 188 EXPECT_TRUE(result->status().ok());
187 EXPECT_EQ(0u, result->settings().size()); 189 EXPECT_EQ(0u, result->settings().size());
188 } 190 }
OLDNEW
« no previous file with comments | « extensions/browser/value_store/leveldb_value_store.cc ('k') | extensions/browser/value_store/testing_value_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698