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

Side by Side Diff: apps/saved_files_service_unittest.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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
« no previous file with comments | « apps/launcher.cc ('k') | apps/shell_window.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "apps/saved_files_service.h" 7 #include "apps/saved_files_service.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/test/values_test_util.h" 10 #include "base/test/values_test_util.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/extensions/extension_prefs.h" 12 #include "chrome/browser/extensions/extension_prefs.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/extensions/extension_system.h" 14 #include "chrome/browser/extensions/extension_system.h"
15 #include "chrome/browser/extensions/test_extension_environment.h" 15 #include "chrome/browser/extensions/test_extension_environment.h"
16 #include "chrome/common/extensions/extension.h"
17 #include "chrome/test/base/testing_profile.h" 16 #include "chrome/test/base/testing_profile.h"
17 #include "extensions/common/extension.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 19
20 #if !defined(OS_ANDROID) 20 #if !defined(OS_ANDROID)
21 21
22 #define TRACE_CALL(expression) \ 22 #define TRACE_CALL(expression) \
23 do { \ 23 do { \
24 SCOPED_TRACE(#expression); \ 24 SCOPED_TRACE(#expression); \
25 expression; \ 25 expression; \
26 } while (0) 26 } while (0)
27 27
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 // This should push the sequence number to the limit of 8, and trigger a 231 // This should push the sequence number to the limit of 8, and trigger a
232 // sequence number compaction. Expect that the sequence numbers are 232 // sequence number compaction. Expect that the sequence numbers are
233 // contiguous from 1 to 4. 233 // contiguous from 1 to 4.
234 service_->EnqueueFileEntry(extension_->id(), GenerateId(3)); 234 service_->EnqueueFileEntry(extension_->id(), GenerateId(3));
235 TRACE_CALL(CheckRangeEnqueuedInOrder(0, 4)); 235 TRACE_CALL(CheckRangeEnqueuedInOrder(0, 4));
236 service_->Clear(extension_->id()); 236 service_->Clear(extension_->id());
237 TRACE_CALL(CheckRangeEnqueuedInOrder(0, 4)); 237 TRACE_CALL(CheckRangeEnqueuedInOrder(0, 4));
238 } 238 }
239 #endif 239 #endif
OLDNEW
« no previous file with comments | « apps/launcher.cc ('k') | apps/shell_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698