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

Side by Side Diff: extensions/common/extension_set_unittest.cc

Issue 1543053002: Switch to standard integer types in extensions/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-extensions-browser
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « extensions/common/extension_set.h ('k') | extensions/common/extensions_client.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 "base/files/file_path.h" 5 #include "base/files/file_path.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "build/build_config.h"
10 #include "extensions/common/extension.h" 11 #include "extensions/common/extension.h"
11 #include "extensions/common/extension_set.h" 12 #include "extensions/common/extension_set.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 14
14 namespace extensions { 15 namespace extensions {
15 16
16 namespace { 17 namespace {
17 18
18 scoped_refptr<Extension> CreateTestExtension(const std::string& name, 19 scoped_refptr<Extension> CreateTestExtension(const std::string& name,
19 const std::string& launch_url, 20 const std::string& launch_url,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 139
139 ASSERT_TRUE(extensions.Contains(ext3->id())); 140 ASSERT_TRUE(extensions.Contains(ext3->id()));
140 ASSERT_TRUE(extensions.InsertAll(*to_add)); 141 ASSERT_TRUE(extensions.InsertAll(*to_add));
141 EXPECT_EQ(4u, extensions.size()); 142 EXPECT_EQ(4u, extensions.size());
142 143
143 ASSERT_FALSE(extensions.InsertAll(*to_add)); // Re-adding same set no-ops. 144 ASSERT_FALSE(extensions.InsertAll(*to_add)); // Re-adding same set no-ops.
144 EXPECT_EQ(4u, extensions.size()); 145 EXPECT_EQ(4u, extensions.size());
145 } 146 }
146 147
147 } // namespace extensions 148 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/extension_set.h ('k') | extensions/common/extensions_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698