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

Side by Side Diff: content/browser/in_process_webkit/dom_storage_browsertest.cc

Issue 7048007: Move scoped_temp_dir and scoped_native_library back from base/memory to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unknwn Created 9 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/file_path.h" 5 #include "base/file_path.h"
6 #include "base/file_util.h" 6 #include "base/file_util.h"
7 #include "base/memory/scoped_temp_dir.h" 7 #include "base/scoped_temp_dir.h"
8 #include "chrome/test/in_process_browser_test.h" 8 #include "chrome/test/in_process_browser_test.h"
9 #include "chrome/test/testing_profile.h" 9 #include "chrome/test/testing_profile.h"
10 #include "chrome/test/thread_test_helper.h" 10 #include "chrome/test/thread_test_helper.h"
11 #include "content/browser/in_process_webkit/dom_storage_context.h" 11 #include "content/browser/in_process_webkit/dom_storage_context.h"
12 #include "content/browser/in_process_webkit/webkit_context.h" 12 #include "content/browser/in_process_webkit/webkit_context.h"
13 13
14 typedef InProcessBrowserTest DOMStorageBrowserTest; 14 typedef InProcessBrowserTest DOMStorageBrowserTest;
15 15
16 // In proc browser test is needed here because ClearLocalState indirectly calls 16 // In proc browser test is needed here because ClearLocalState indirectly calls
17 // WebKit's isMainThread through WebSecurityOrigin->SecurityOrigin. 17 // WebKit's isMainThread through WebSecurityOrigin->SecurityOrigin.
(...skipping 26 matching lines...) Expand all
44 // Make sure we wait until the destructor has run. 44 // Make sure we wait until the destructor has run.
45 scoped_refptr<ThreadTestHelper> helper( 45 scoped_refptr<ThreadTestHelper> helper(
46 new ThreadTestHelper(BrowserThread::WEBKIT)); 46 new ThreadTestHelper(BrowserThread::WEBKIT));
47 ASSERT_TRUE(helper->Run()); 47 ASSERT_TRUE(helper->Run());
48 48
49 // Because we specified https for scheme to be skipped the second file 49 // Because we specified https for scheme to be skipped the second file
50 // should survive and the first go into vanity. 50 // should survive and the first go into vanity.
51 ASSERT_FALSE(file_util::PathExists(temp_file_path_1)); 51 ASSERT_FALSE(file_util::PathExists(temp_file_path_1));
52 ASSERT_TRUE(file_util::PathExists(temp_file_path_2)); 52 ASSERT_TRUE(file_util::PathExists(temp_file_path_2));
53 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698