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

Unified Diff: extensions/shell/browser/shell_nacl_browser_delegate_unittest.cc

Issue 471453003: Add an app_shell_unittests target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: (app-shell-tests) fix GN build Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/shell/app_shell.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/shell/browser/shell_nacl_browser_delegate_unittest.cc
diff --git a/extensions/shell/browser/shell_nacl_browser_delegate_unittest.cc b/extensions/shell/browser/shell_nacl_browser_delegate_unittest.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e42fb330490af505b69afe2fa994637ed8f9dc55
--- /dev/null
+++ b/extensions/shell/browser/shell_nacl_browser_delegate_unittest.cc
@@ -0,0 +1,26 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "extensions/shell/browser/shell_nacl_browser_delegate.h"
+
+#include "base/strings/string_util.h"
+#include "content/public/test/test_browser_context.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace extensions {
+
+typedef testing::Test ShellNaClBrowserDelegateTest;
+
+// Verifies that the returned version string has a valid format.
+TEST_F(ShellNaClBrowserDelegateTest, VersionString) {
+ content::TestBrowserContext browser_context;
+ ShellNaClBrowserDelegate delegate(&browser_context);
+
+ // Version should look like "1.2.3.4 (5)".
+ std::string version = delegate.GetVersionString();
+ EXPECT_TRUE(MatchPattern(version, "*.*.*.* (*)")) << "bad version "
+ << version;
+}
+
+} // namespace extensions
« no previous file with comments | « extensions/shell/app_shell.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698