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

Unified Diff: rlz/lib/lib_values_unittest.cc

Issue 10642009: Add a regenerate button to regenerate the password in Windows. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Sync and Merge. Created 8 years, 6 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 | « rlz/lib/lib_values.cc ('k') | rlz/lib/machine_id.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: rlz/lib/lib_values_unittest.cc
diff --git a/rlz/lib/lib_values_unittest.cc b/rlz/lib/lib_values_unittest.cc
deleted file mode 100644
index 7e8fa83b99504a4410b1922d48c89bb36fafffe1..0000000000000000000000000000000000000000
--- a/rlz/lib/lib_values_unittest.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) 2012 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 "rlz/lib/lib_values.h"
-
-#include "base/logging.h"
-#include "rlz/lib/assert.h"
-#include "testing/gmock/include/gmock/gmock.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-TEST(LibValuesUnittest, GetAccessPointFromName) {
- rlz_lib::SetExpectedAssertion("GetAccessPointFromName: point is NULL");
- EXPECT_FALSE(rlz_lib::GetAccessPointFromName("", NULL));
- rlz_lib::SetExpectedAssertion("");
-
- rlz_lib::AccessPoint point;
- EXPECT_FALSE(rlz_lib::GetAccessPointFromName(NULL, &point));
- EXPECT_EQ(rlz_lib::NO_ACCESS_POINT, point);
-
- EXPECT_TRUE(rlz_lib::GetAccessPointFromName("", &point));
- EXPECT_EQ(rlz_lib::NO_ACCESS_POINT, point);
-
- EXPECT_FALSE(rlz_lib::GetAccessPointFromName("i1", &point));
- EXPECT_EQ(rlz_lib::NO_ACCESS_POINT, point);
-
- EXPECT_TRUE(rlz_lib::GetAccessPointFromName("I7", &point));
- EXPECT_EQ(rlz_lib::IE_DEFAULT_SEARCH, point);
-
- EXPECT_TRUE(rlz_lib::GetAccessPointFromName("T4", &point));
- EXPECT_EQ(rlz_lib::IETB_SEARCH_BOX, point);
-
- EXPECT_FALSE(rlz_lib::GetAccessPointFromName("T4 ", &point));
- EXPECT_EQ(rlz_lib::NO_ACCESS_POINT, point);
-}
-
-
-TEST(LibValuesUnittest, GetEventFromName) {
- rlz_lib::SetExpectedAssertion("GetEventFromName: event is NULL");
- EXPECT_FALSE(rlz_lib::GetEventFromName("", NULL));
- rlz_lib::SetExpectedAssertion("");
-
- rlz_lib::Event event;
- EXPECT_FALSE(rlz_lib::GetEventFromName(NULL, &event));
- EXPECT_EQ(rlz_lib::INVALID_EVENT, event);
-
- EXPECT_TRUE(rlz_lib::GetEventFromName("", &event));
- EXPECT_EQ(rlz_lib::INVALID_EVENT, event);
-
- EXPECT_FALSE(rlz_lib::GetEventFromName("i1", &event));
- EXPECT_EQ(rlz_lib::INVALID_EVENT, event);
-
- EXPECT_TRUE(rlz_lib::GetEventFromName("I", &event));
- EXPECT_EQ(rlz_lib::INSTALL, event);
-
- EXPECT_TRUE(rlz_lib::GetEventFromName("F", &event));
- EXPECT_EQ(rlz_lib::FIRST_SEARCH, event);
-
- EXPECT_FALSE(rlz_lib::GetEventFromName("F ", &event));
- EXPECT_EQ(rlz_lib::INVALID_EVENT, event);
-}
« no previous file with comments | « rlz/lib/lib_values.cc ('k') | rlz/lib/machine_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698