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

Side by Side Diff: chrome/common/extensions/extension_test_util.cc

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/extensions/extension.h" 5 #include "chrome/common/extensions/extension.h"
6 #include "chrome/common/extensions/extension_test_util.h" 6 #include "chrome/common/extensions/extension_test_util.h"
7 #include "testing/gtest/include/gtest/gtest.h" 7 #include "testing/gtest/include/gtest/gtest.h"
8 8
9 namespace extension_test_util { 9 namespace extension_test_util {
10 10
11 std::string MakeId(std::string seed) { 11 std::string MakeId(std::string seed) {
12 std::string result; 12 std::string result;
13 bool success = Extension::GenerateId(seed, &result); 13 bool success = extensions::Extension::GenerateId(seed, &result);
14 EXPECT_TRUE(success); 14 EXPECT_TRUE(success);
15 EXPECT_FALSE(result.empty()); 15 EXPECT_FALSE(result.empty());
16 EXPECT_TRUE(Extension::IdIsValid(result)); 16 EXPECT_TRUE(extensions::Extension::IdIsValid(result));
17 return result; 17 return result;
18 } 18 }
19 19
20 } // namespace extension_test_util 20 } // namespace extension_test_util
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension_set_unittest.cc ('k') | chrome/common/extensions/extension_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698