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

Unified Diff: chrome/browser/sync/test/integration/performance/typed_urls_sync_perf_test.cc

Issue 815363002: replace COMPILE_ASSERT with static_assert in chrome/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 6 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/themes/browser_theme_pack.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/test/integration/performance/typed_urls_sync_perf_test.cc
diff --git a/chrome/browser/sync/test/integration/performance/typed_urls_sync_perf_test.cc b/chrome/browser/sync/test/integration/performance/typed_urls_sync_perf_test.cc
index 78396f09d61cbf275ebfd6725d964eb80c9e4951..ffed1e8407e4acc414c6d6b190699f1b7c6218b1 100644
--- a/chrome/browser/sync/test/integration/performance/typed_urls_sync_perf_test.cc
+++ b/chrome/browser/sync/test/integration/performance/typed_urls_sync_perf_test.cc
@@ -21,12 +21,12 @@ using typed_urls_helper::GetTypedUrlsFromClient;
static const int kNumUrls = 163;
// This compile assert basically asserts that kNumUrls is right in the
// middle between two multiples of kDefaultMaxCommitBatchSize.
-COMPILE_ASSERT(
+static_assert(
((kNumUrls % syncer::kDefaultMaxCommitBatchSize) >=
(syncer::kDefaultMaxCommitBatchSize / 2)) &&
((kNumUrls % syncer::kDefaultMaxCommitBatchSize) <=
((syncer::kDefaultMaxCommitBatchSize + 1) / 2)),
- kNumUrlsShouldBeBetweenTwoMultiplesOfkDefaultMaxCommitBatchSize);
+ "kNumUrls should be between two multiples of kDefaultMaxCommitBatchSize");
class TypedUrlsSyncPerfTest : public SyncTest {
public:
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/themes/browser_theme_pack.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698