Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / extensions / shell / browser / shell_nacl_browser_delegate_unittest.cc
blob0e1d17846cbe823ab1a497fb798f9fdf2d3651d0
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/pattern.h"
8 #include "base/strings/string_util.h"
9 #include "content/public/test/test_browser_context.h"
10 #include "testing/gtest/include/gtest/gtest.h"
12 namespace extensions {
14 typedef testing::Test ShellNaClBrowserDelegateTest;
16 // Verifies that the returned version string has a valid format.
17 TEST_F(ShellNaClBrowserDelegateTest, VersionString) {
18 content::TestBrowserContext browser_context;
19 ShellNaClBrowserDelegate delegate(&browser_context);
21 // Version should look like "1.2.3.4 (5)".
22 std::string version = delegate.GetVersionString();
23 EXPECT_TRUE(base::MatchPattern(version, "*.*.*.* (*)")) << "bad version "
24 << version;
27 } // namespace extensions