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

Unified Diff: chrome/browser/sync/util/get_session_name_unittest.cc

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 | « chrome/browser/sync/util/get_session_name_mac.mm ('k') | chrome/browser/sync/util/get_session_name_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/get_session_name_unittest.cc
diff --git a/chrome/browser/sync/util/get_session_name_unittest.cc b/chrome/browser/sync/util/get_session_name_unittest.cc
deleted file mode 100644
index a0bfe76f9d92945efbe41f246db7cb96238ecf57..0000000000000000000000000000000000000000
--- a/chrome/browser/sync/util/get_session_name_unittest.cc
+++ /dev/null
@@ -1,48 +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 <string>
-
-#include "base/bind.h"
-#include "base/message_loop.h"
-#include "chrome/browser/sync/util/get_session_name.h"
-#include "testing/gtest/include/gtest/gtest.h"
-
-namespace browser_sync {
-
-namespace {
-
-class GetSessionNameTest : public ::testing::Test {
- public:
- void SetSessionNameAndQuit(const std::string& session_name) {
- session_name_ = session_name;
- message_loop_.Quit();
- }
-
- protected:
- MessageLoop message_loop_;
- std::string session_name_;
-};
-
-// Call GetSessionNameSynchronouslyForTesting and make sure its return
-// value looks sane.
-TEST_F(GetSessionNameTest, GetSessionNameSynchronously) {
- const std::string& session_name = GetSessionNameSynchronouslyForTesting();
- EXPECT_FALSE(session_name.empty());
-}
-
-// Calls GetSessionName and runs the message loop until it comes back
-// with a session name. Makes sure the returned session name is equal
-// to the return value of GetSessionNameSynchronouslyForTesting().
-TEST_F(GetSessionNameTest, GetSessionName) {
- GetSessionName(message_loop_.message_loop_proxy(),
- base::Bind(&GetSessionNameTest::SetSessionNameAndQuit,
- base::Unretained(this)));
- message_loop_.Run();
- EXPECT_EQ(session_name_, GetSessionNameSynchronouslyForTesting());
-}
-
-} // namespace
-
-} // namespace browser_sync
« no previous file with comments | « chrome/browser/sync/util/get_session_name_mac.mm ('k') | chrome/browser/sync/util/get_session_name_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698