Remove ExtensionPrefs::SetDidExtensionEscalatePermissions.
[chromium-blink-merge.git] / extensions / shell / browser / shell_nacl_browser_delegate_unittest.cc
blobe42fb330490af505b69afe2fa994637ed8f9dc55
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/shell/browser/shell_nacl_browser_delegate.h"
7 #include "base/strings/string_util.h"
8 #include "content/public/test/test_browser_context.h"
9 #include "testing/gtest/include/gtest/gtest.h"
11 namespace extensions {
13 typedef testing::Test ShellNaClBrowserDelegateTest;
15 // Verifies that the returned version string has a valid format.
16 TEST_F(ShellNaClBrowserDelegateTest, VersionString) {
17 content::TestBrowserContext browser_context;
18 ShellNaClBrowserDelegate delegate(&browser_context);
20 // Version should look like "1.2.3.4 (5)".
21 std::string version = delegate.GetVersionString();
22 EXPECT_TRUE(MatchPattern(version, "*.*.*.* (*)")) << "bad version "
23 << version;
26 } // namespace extensions