OLD | NEW |
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 |
OLD | NEW |